Skip to content

Commit

Permalink
Data update: Improve failure tolerance and retry in price update
Browse files Browse the repository at this point in the history
  • Loading branch information
nico-corthorn committed Oct 7, 2024
1 parent fe73e99 commit 0d50471
Showing 1 changed file with 20 additions and 2 deletions.
22 changes: 20 additions & 2 deletions statemachine/update_all_prices.asl.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,31 @@
"ItemsPath": "$.assets",
"MaxConcurrency": 10,
"ToleratedFailureCount": 10,
"Iterator":
{
"Iterator": {
"StartAt": "Update Prices",
"States": {
"Update Prices": {
"Type": "Task",
"Resource": "${UpdatePricesFunctionArn}",
"Retry": [
{
"ErrorEquals": ["States.ALL"],
"IntervalSeconds": 60,
"MaxAttempts": 5,
"BackoffRate": 2
}
],
"Catch": [
{
"ErrorEquals": ["States.ALL"],
"ResultPath": "$.errorInfo",
"Next": "Proceed After Failure"
}
],
"End": true
},
"Proceed After Failure": {
"Type": "Pass",
"End": true
}
}
Expand Down

0 comments on commit 0d50471

Please sign in to comment.