Skip to content

Commit

Permalink
Allow MapRun redriving
Browse files Browse the repository at this point in the history
Fixes #303
  • Loading branch information
chuckwondo committed Nov 29, 2023
1 parent b77b353 commit 4b4e4e4
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
1 change: 1 addition & 0 deletions app/stacks/cumulus/iam.tf
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ data "aws_iam_policy_document" "allow_sfn_distributed_maps" {
"states:DescribeExecution",
"states:StartExecution",
"states:StopExecution",
"states:RedriveExecution",
]
resources = ["*"]
}
Expand Down
15 changes: 14 additions & 1 deletion app/stacks/cumulus/templates/discover-granules-workflow.asl.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"Type": "Map",
"End": true,
"MaxConcurrency": 10,
"ToleratedFailurePercentage": 0,
"ToleratedFailurePercentage": 3,
"ItemReader": {
"Resource": "arn:aws:states:::s3:getObject",
"ReaderConfig": {
Expand Down Expand Up @@ -98,13 +98,22 @@
"Retry": [
{
"ErrorEquals": [
"Lambda.ClientExecutionTimeoutException",
"Lambda.ServiceException",
"Lambda.AWSLambdaException",
"Lambda.SdkClientException"
],
"IntervalSeconds": 2,
"MaxAttempts": 6,
"BackoffRate": 2
},
{
"ErrorEquals": [
"Lambda.Unknown",
"States.Timeout"
],
"IntervalSeconds": 30,
"MaxAttempts": 1
}
],
"Next": "BatchGranules"
Expand All @@ -131,6 +140,7 @@
"Retry": [
{
"ErrorEquals": [
"Lambda.ClientExecutionTimeoutException",
"Lambda.ServiceException",
"Lambda.AWSLambdaException",
"Lambda.SdkClientException"
Expand Down Expand Up @@ -181,6 +191,7 @@
"Retry": [
{
"ErrorEquals": [
"Lambda.ClientExecutionTimeoutException",
"Lambda.ServiceException",
"Lambda.AWSLambdaException",
"Lambda.SdkClientException"
Expand Down Expand Up @@ -230,6 +241,7 @@
"Retry": [
{
"ErrorEquals": [
"Lambda.ClientExecutionTimeoutException",
"Lambda.ServiceException",
"Lambda.AWSLambdaException",
"Lambda.SdkClientException"
Expand Down Expand Up @@ -290,6 +302,7 @@
"Retry": [
{
"ErrorEquals": [
"Lambda.ClientExecutionTimeoutException",
"Lambda.ServiceException",
"Lambda.AWSLambdaException",
"Lambda.SdkClientException"
Expand Down

0 comments on commit 4b4e4e4

Please sign in to comment.