Skip to content

Commit

Permalink
comments and s3 retries
Browse files Browse the repository at this point in the history
  • Loading branch information
morsecodist committed May 21, 2024
1 parent 8e0524d commit cdfa51c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/idseq_utils/idseq_utils/batch_run_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,9 @@


_batch_client = boto3.client("batch", config=config)
_s3_client = boto3.client("s3")
# the retries are less necessary for S3 because rate limiting is more generous but we have hit the limit
# and it is costly for this job to be re-run
_s3_client = boto3.client("s3", config=config)

try:
account_id = boto3.client("sts").get_caller_identity()["Account"]
Expand Down Expand Up @@ -203,6 +205,7 @@ def _job_queue(provisioning_model: str):
log.info(f"skipping chunk, output already exists: {wdl_output_uri}")
return
except ClientError as e:
# raise the error if it is anything other than "not found"
if e.response["Error"]["Code"] != "404":
raise e

Expand Down

0 comments on commit cdfa51c

Please sign in to comment.