File tree Expand file tree Collapse file tree 1 file changed +41
-5
lines changed
.happy/terraform/modules/sfn Expand file tree Collapse file tree 1 file changed +41
-5
lines changed Original file line number Diff line number Diff line change @@ -281,8 +281,7 @@ resource "aws_sfn_state_machine" "state_machine" {
281
281
"BackoffRate": 2.0
282
282
} ],
283
283
"Next": "DeregisterJobDefinition",
284
- "ResultPath": null,
285
- "OutputPath": "$.[0]"
284
+ "ResultPath": null
286
285
},
287
286
"HandleErrors": {
288
287
"Type": "Task",
@@ -305,11 +304,48 @@ resource "aws_sfn_state_machine" "state_machine" {
305
304
},
306
305
"DeregisterJobDefinition": {
307
306
"Type": "Task",
308
- "End ": true ,
307
+ "Next ": "CheckForErrors" ,
309
308
"Parameters": {
310
- "JobDefinition.$": "$.batch.JobDefinitionName"
309
+ "JobDefinition.$": "$[0] .batch.JobDefinitionName"
311
310
},
312
- "Resource": "arn:aws:states:::aws-sdk:batch:deregisterJobDefinition"
311
+ "Resource": "arn:aws:states:::aws-sdk:batch:deregisterJobDefinition",
312
+ "ResultPath": null
313
+ },
314
+ "CheckForErrors": {
315
+ "Type": "Choice",
316
+ "Choices": [
317
+ {
318
+ "Or": [
319
+ {
320
+ "Variable": "$[0].error",
321
+ "IsPresent": true
322
+ },
323
+ {
324
+ "Variable": "$[1].error",
325
+ "IsPresent": true
326
+ }
327
+ ],
328
+ "Next": "ConversionError"
329
+ },
330
+ {
331
+ "Variable": "$.error",
332
+ "IsPresent": true,
333
+ "Next": "DownloadValidateError"
334
+ }
335
+ ],
336
+ "Default": "EndPass"
337
+ },
338
+ "ConversionError": {
339
+ "Type": "Fail",
340
+ "Cause": "CXG and/or Seurat conversion failed."
341
+ },
342
+ "DownloadValidateError": {
343
+ "Type": "Fail",
344
+ "Cause": "An error occurred during Download/Validate."
345
+ },
346
+ "EndPass": {
347
+ "Type": "Pass",
348
+ "End": true
313
349
}
314
350
}
315
351
}
You can’t perform that action at this time.
0 commit comments