Skip to content

Commit

Permalink
fix state machine transitions
Browse files Browse the repository at this point in the history
  • Loading branch information
torimcd committed Jun 4, 2024
1 parent df784d2 commit 554a5b6
Showing 1 changed file with 30 additions and 32 deletions.
62 changes: 30 additions & 32 deletions terraform/state_machine_definition.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -448,40 +448,39 @@
"Type": "Task",
"Resource": "arn:aws:states:::lambda:invoke",
"TimeoutSeconds": 86400,
"End": "true",
"ResultPath": "$.gitc_response"
"Next": "SaveCNMMessage"
},
"SaveCNMMessage": {
"Type": "Task",
"Resource": "${SaveCNMMessageLambda}",
"Parameters": {
"cma": {
"event.$": "$",
"task_config": {
"collection": "{$.collection_name}",
"granule_ur": "{$.granule_ur}",
"pobit_audit_bucket": "${PobitAuditBucket}",
"cumulus_message": {
"input": "{$.gitc_response}"
"Type": "Task",
"Resource": "${SaveCNMMessageLambda}",
"Parameters": {
"cma": {
"event.$": "$",
"task_config": {
"collection": "{$.collection_name}",
"granule_ur": "{$.granule_ur}",
"pobit_audit_bucket": "${PobitAuditBucket}",
"cumulus_message": {
"input": "{$}"
}
}
}
}
},
"Retry": [
{
"ErrorEquals": [
"Lambda.ServiceException",
"Lambda.AWSLambdaException",
"Lambda.SdkClientException",
"Lambda.TooManyRequestsException"
],
"IntervalSeconds": 2,
"MaxAttempts": 6,
"BackoffRate": 2
}
],
"Next": "WorkflowSucceeded"
}
},
"Retry": [
{
"ErrorEquals": [
"Lambda.ServiceException",
"Lambda.AWSLambdaException",
"Lambda.SdkClientException",
"Lambda.TooManyRequestsException"
],
"IntervalSeconds": 2,
"MaxAttempts": 6,
"BackoffRate": 2
}
],
"End": "true"
}
},
"ResultPath": "$.payload.pobit",
"Catch": [
Expand All @@ -502,10 +501,9 @@
"MaxAttempts": 1
}
],
"Next": "SaveCNMMessage"
}
"Next": "WorkflowSucceeded"
},

"WorkflowSucceeded": {
"Type": "Succeed"
},
Expand Down

0 comments on commit 554a5b6

Please sign in to comment.