Skip to content

Commit

Permalink
Merge pull request #25 from AllenInstitute/feature/update-sfn-state-b…
Browse files Browse the repository at this point in the history
…atch-retry-config

feature/update sfn state batch retry config
  • Loading branch information
rpmcginty authored Dec 6, 2024
2 parents 1dc2598 + de08b88 commit ab5ad1d
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 238 deletions.
117 changes: 0 additions & 117 deletions .github/actions/bump-version-tag/action.yml

This file was deleted.

115 changes: 0 additions & 115 deletions .github/workflows/bump_version.yml

This file was deleted.

18 changes: 12 additions & 6 deletions src/aibs_informatics_cdk_lib/constructs_/sfn/states/batch.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,8 +133,10 @@ def register_job_definition(
"Retry": [
{
"ErrorEquals": ["Batch.BatchException"],
"IntervalSeconds": 1,
"MaxAttempts": 3,
# Interval at attempt n = IntervalSeconds x BackoffRate ^(n-1)
# Total time from first try: 3 + 6 + 12 + 24 = 45 seconds
"IntervalSeconds": 3,
"MaxAttempts": 5,
"BackoffRate": 2.0,
},
],
Expand Down Expand Up @@ -208,8 +210,10 @@ def submit_job(
"Retry": [
{
"ErrorEquals": ["Batch.BatchException"],
"IntervalSeconds": 1,
"MaxAttempts": 3,
# Interval at attempt n = IntervalSeconds x BackoffRate ^(n-1)
# Total time from first try: 3 + 6 + 12 + 24 = 45 seconds
"IntervalSeconds": 3,
"MaxAttempts": 5,
"BackoffRate": 2.0,
},
],
Expand Down Expand Up @@ -248,8 +252,10 @@ def deregister_job_definition(
"Retry": [
{
"ErrorEquals": ["Batch.BatchException"],
"IntervalSeconds": 1,
"MaxAttempts": 3,
# Interval at attempt n = IntervalSeconds x BackoffRate ^(n-1)
# Total time from first try: 3 + 6 + 12 + 24 = 45 seconds
"IntervalSeconds": 3,
"MaxAttempts": 5,
"BackoffRate": 2.0,
},
],
Expand Down

0 comments on commit ab5ad1d

Please sign in to comment.