Skip to content

Commit

Permalink
move save cnm into map
Browse files Browse the repository at this point in the history
  • Loading branch information
torimcd committed Jun 4, 2024
1 parent 74be4dd commit df784d2
Showing 1 changed file with 50 additions and 49 deletions.
99 changes: 50 additions & 49 deletions terraform/state_machine_definition.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -450,61 +450,62 @@
"TimeoutSeconds": 86400,
"End": "true",
"ResultPath": "$.gitc_response"
}
},
"ResultPath": "$.payload.pobit",
"Catch": [
{
"ErrorEquals": [
"States.ALL"
],
"ResultPath": "$.exception",
"Next": "WorkflowFailed"
}
],
"Retry": [
{
"ErrorEquals": [
"States.ALL"
},
"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}"
}
}
}
},
"Retry": [
{
"ErrorEquals": [
"Lambda.ServiceException",
"Lambda.AWSLambdaException",
"Lambda.SdkClientException",
"Lambda.TooManyRequestsException"
],
"IntervalSeconds": 2,
"MaxAttempts": 6,
"BackoffRate": 2
}
],
"IntervalSeconds": 2,
"MaxAttempts": 1
"Next": "WorkflowSucceeded"
}
],
"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}"
}
},
"ResultPath": "$.payload.pobit",
"Catch": [
{
"ErrorEquals": [
"States.ALL"
],
"ResultPath": "$.exception",
"Next": "WorkflowFailed"
}
}
},
"Retry": [
{
"ErrorEquals": [
"Lambda.ServiceException",
"Lambda.AWSLambdaException",
"Lambda.SdkClientException",
"Lambda.TooManyRequestsException"
],
"Retry": [
{
"ErrorEquals": [
"States.ALL"
],
"IntervalSeconds": 2,
"MaxAttempts": 6,
"BackoffRate": 2
}
],
"Next": "WorkflowSucceeded"
"IntervalSeconds": 2,
"MaxAttempts": 1
}
],
"Next": "SaveCNMMessage"
}
},

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

0 comments on commit df784d2

Please sign in to comment.