Skip to content

Commit

Permalink
Allow MapRun redriving (#304)
Browse files Browse the repository at this point in the history
Fixes #303
  • Loading branch information
chuckwondo authored Nov 29, 2023
1 parent b77b353 commit e3dab53
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
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
18 changes: 16 additions & 2 deletions 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 @@ -89,7 +89,8 @@
"collection": "{$.meta.collection}",
"buckets": "{$.meta.buckets}",
"stack": "{$.meta.stack}",
"duplicateGranuleHandling": "{$.meta.collection.duplicateHandling}"
"duplicateGranuleHandling": "{$.meta.collection.duplicateHandling}",
"concurrency": 8
}
}
},
Expand All @@ -98,13 +99,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 +141,7 @@
"Retry": [
{
"ErrorEquals": [
"Lambda.ClientExecutionTimeoutException",
"Lambda.ServiceException",
"Lambda.AWSLambdaException",
"Lambda.SdkClientException"
Expand Down Expand Up @@ -181,6 +192,7 @@
"Retry": [
{
"ErrorEquals": [
"Lambda.ClientExecutionTimeoutException",
"Lambda.ServiceException",
"Lambda.AWSLambdaException",
"Lambda.SdkClientException"
Expand Down Expand Up @@ -230,6 +242,7 @@
"Retry": [
{
"ErrorEquals": [
"Lambda.ClientExecutionTimeoutException",
"Lambda.ServiceException",
"Lambda.AWSLambdaException",
"Lambda.SdkClientException"
Expand Down Expand Up @@ -290,6 +303,7 @@
"Retry": [
{
"ErrorEquals": [
"Lambda.ClientExecutionTimeoutException",
"Lambda.ServiceException",
"Lambda.AWSLambdaException",
"Lambda.SdkClientException"
Expand Down

0 comments on commit e3dab53

Please sign in to comment.