Skip to content

Commit

Permalink
update: state machine def for cumulus-deploy (#27)
Browse files Browse the repository at this point in the history
  • Loading branch information
voxparcxls authored May 28, 2024
1 parent dc93861 commit edb78fb
Showing 1 changed file with 90 additions and 19 deletions.
109 changes: 90 additions & 19 deletions terraform/state_machine_definition.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,14 @@
"IntervalSeconds":2,
"MaxAttempts":6,
"BackoffRate":2
},
{
"ErrorEquals": [
"Lambda.Unknown"
],
"BackoffRate": 2,
"IntervalSeconds": 2,
"MaxAttempts": 2
}
],
"Next":"Get Granule umm_json"
Expand All @@ -52,11 +60,21 @@
"Lambda.ServiceException",
"Lambda.AWSLambdaException",
"Lambda.SdkClientException",
"Lambda.TooManyRequestsException"
"Lambda.TooManyRequestsException",
"ReadTimeout",
"HTTPError"
],
"IntervalSeconds":2,
"MaxAttempts":6,
"MaxAttempts":16,
"BackoffRate":2
},
{
"ErrorEquals": [
"Lambda.Unknown"
],
"BackoffRate": 2,
"IntervalSeconds": 2,
"MaxAttempts": 2
}
],
"Next":"Convert to PNG?"
Expand Down Expand Up @@ -105,7 +123,15 @@
"IntervalSeconds":2,
"MaxAttempts":6,
"BackoffRate":2
}
},
{
"ErrorEquals": [
"Lambda.Unknown"
],
"BackoffRate": 2,
"IntervalSeconds": 2,
"MaxAttempts": 2
}
],
"Next":"Apply OPERA Treatment?"
},
Expand Down Expand Up @@ -153,6 +179,14 @@
"IntervalSeconds":2,
"MaxAttempts":6,
"BackoffRate":2
},
{
"ErrorEquals": [
"Lambda.Unknown"
],
"BackoffRate": 2,
"IntervalSeconds": 2,
"MaxAttempts": 2
}
],
"Next":"Generate Image Metadata"
Expand All @@ -179,11 +213,21 @@
"Lambda.ServiceException",
"Lambda.AWSLambdaException",
"Lambda.SdkClientException",
"Lambda.TooManyRequestsException"
"Lambda.TooManyRequestsException",
"ReadTimeout",
"HTTPError"
],
"IntervalSeconds":2,
"MaxAttempts":6,
"BackoffRate":2
},
{
"ErrorEquals": [
"Lambda.Unknown"
],
"BackoffRate": 2,
"IntervalSeconds": 2,
"MaxAttempts": 2
}
],
"Next":"Convert Variables To PNG"
Expand Down Expand Up @@ -258,6 +302,14 @@
"IntervalSeconds":2,
"MaxAttempts":6,
"BackoffRate":2
},
{
"ErrorEquals": [
"Lambda.Unknown"
],
"BackoffRate": 2,
"IntervalSeconds": 2,
"MaxAttempts": 2
}
],
"Next":"Job Complete?"
Expand Down Expand Up @@ -319,6 +371,14 @@
"IntervalSeconds":2,
"MaxAttempts":6,
"BackoffRate":2
},
{
"ErrorEquals": [
"Lambda.Unknown"
],
"BackoffRate": 2,
"IntervalSeconds": 2,
"MaxAttempts": 2
}
],
"End":true
Expand Down Expand Up @@ -356,6 +416,14 @@
"IntervalSeconds":2,
"MaxAttempts":6,
"BackoffRate":2
},
{
"ErrorEquals": [
"Lambda.Unknown"
],
"BackoffRate": 2,
"IntervalSeconds": 2,
"MaxAttempts": 2
}
],
"Next":"Clean Output"
Expand All @@ -364,18 +432,13 @@
"Type":"Pass",
"Next":"BuildImageSets",
"Parameters":{
"cumulus_meta.$":"$.cumulus_meta",
"meta":{
"buckets.$":"$.meta.buckets",
"cmr.$":"$.meta.cmr",
"collection.$":"$.meta.collection",
"distribution_endpoint.$":"$.meta.distribution_endpoint",
"launchpad.$":"$.meta.launchpad",
"provider.$":"$.meta.provider",
"stack.$":"$.meta.stack",
"template.$":"$.meta.template",
"retries.$":"$.meta.retries",
"visibilityTimeout.$":"$.meta.visibilityTimeout"
"cumulus_meta.$": "$.cumulus_meta",
"meta": {
"buckets.$": "$.meta.buckets",
"cmr.$": "$.meta.cmr",
"collection.$": "$.meta.collection",
"provider.$": "$.meta.provider",
"stack.$": "$.meta.stack"
},
"payload":{
"granules.$":"$.payload.granules",
Expand Down Expand Up @@ -416,7 +479,7 @@
"States.ALL"
],
"IntervalSeconds": 2,
"MaxAttempts": 1
"MaxAttempts": 3
}
],
"Next": "TransferImageSets"
Expand All @@ -425,7 +488,7 @@
"Type": "Map",
"InputPath": "$",
"ItemsPath": "$.payload.pobit",
"MaxConcurrency": 3,
"MaxConcurrency": 20,
"Iterator": {
"StartAt": "SendToGITC",
"States": {
Expand Down Expand Up @@ -484,7 +547,7 @@
"States.ALL"
],
"IntervalSeconds": 2,
"MaxAttempts": 1
"MaxAttempts": 3
}
],
"Next": "Save CMA Message"
Expand Down Expand Up @@ -515,6 +578,14 @@
"IntervalSeconds": 2,
"MaxAttempts": 6,
"BackoffRate": 2
},
{
"ErrorEquals": [
"Lambda.Unknown"
],
"BackoffRate": 2,
"IntervalSeconds": 2,
"MaxAttempts": 2
}
],
"Next": "WorkflowSucceeded"
Expand Down

0 comments on commit edb78fb

Please sign in to comment.