Skip to content

Commit

Permalink
Merge pull request #1869 from ASFHyP3/improve-retry
Browse files Browse the repository at this point in the history
Use exponential backoff retry strategy
  • Loading branch information
jtherrmann authored Oct 9, 2023
2 parents 41d6a9b + 01483eb commit 74fd729
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [4.1.2]
### Changed
- AWS Batch jobs are now retried twice, once after 10 minutes and once after 60 minutes, to reduce the number of jobs that fail due to transient errors, such as Earthdata Login and Sentinel-1 distribution outages.

## [4.1.1]
### Added
- New DEM coverage map that allows COP90 tiles to fill the COP30 gaps over Azerbaijan and Armenia.
Expand Down
13 changes: 9 additions & 4 deletions apps/step-function.json.j2
Original file line number Diff line number Diff line change
Expand Up @@ -215,10 +215,7 @@
"ShareIdentifier": "default",
"SchedulingPriorityOverride.$": "$.priority",
"Parameters.$": "$.job_parameters",
"ContainerOverrides.$": "$.container_overrides",
"RetryStrategy": {
"Attempts": 3
}
"ContainerOverrides.$": "$.container_overrides"
},
"ResultPath": "$.results.processing_results.step_{{ loop.index0 }}",
"Next": "{% if not loop.last %}{{ loop.nextitem['name'] }}{% else %}GET_FILES{% endif %}",
Expand All @@ -230,6 +227,14 @@
],
"MaxAttempts": 2
},
{
"ErrorEquals": [
"States.TaskFailed"
],
"IntervalSeconds": 600,
"MaxAttempts": 2,
"BackoffRate": 6.0
},
{
"ErrorEquals": [
"States.ALL"
Expand Down

0 comments on commit 74fd729

Please sign in to comment.