UPD: Increased sleep wait

This commit is contained in:
xpk
2025-11-11 17:37:38 +08:00
parent 352d06e317
commit 30195dd4f2
+5 -6
View File
@@ -3,11 +3,10 @@
S3 Batch Restore Script S3 Batch Restore Script
Restores objects from S3 Glacier Deep Archive using AWS S3 Batch Operations. Restores objects from S3 Glacier Deep Archive using AWS S3 Batch Operations.
Generate objectlist.csv with the following script: # Generate objectlist.csv with the following script:
# BUCKET=whk1-bea-icc-mbk-prd-s3-log-infra-log
BUCKET=whk1-bea-icc-mbk-prd-s3-log-infra-log # PREFIX=elb/alb-icc-mbk/AWSLogs/851239346925/elasticloadbalancing/ap-east-1/2025/08/11/
PREFIX=elb/alb-icc-mbk/AWSLogs/851239346925/elasticloadbalancing/ap-east-1/2025/08/11/ # aws s3 ls s3://$BUCKET/$PREFIX | awk "{print \"$BUCKET,$PREFIX\"\$NF}" | tee /tmp/objectlist.csv
aws s3 ls s3://$BUCKET/$PREFIX | awk "{print \"$BUCKET,$PREFIX\"\$NF}" | tee /tmp/objectlist.csv
""" """
import sys import sys
@@ -229,7 +228,7 @@ def main():
) )
# Wait a bit before approving # Wait a bit before approving
time.sleep(5) time.sleep(10)
# Approve job # Approve job
print(f"Approving submitted job {job_id}...") print(f"Approving submitted job {job_id}...")