Skip to content

Commit 5a2e515

Browse files
committed
reintroduce changes that were removed in the merge
1 parent c0192ec commit 5a2e515

File tree

2 files changed

+28
-4
lines changed

2 files changed

+28
-4
lines changed

statemachine/statemachine.asl.json

Lines changed: 26 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"Initializer": {
66
"Type": "Task",
77
"Resource": "${initializerArn}",
8-
"Next": "Branching",
8+
"Next": "versionPublisher",
99
"ResultPath": "$.powerValues",
1010
"TimeoutSeconds": ${totalExecutionTimeout},
1111
"Catch": [
@@ -16,10 +16,33 @@
1616
}
1717
]
1818
},
19+
"versionPublisher": {
20+
"Type": "Task",
21+
"Resource": "${versionPublisherArn}",
22+
"Next": "IsCountReached",
23+
"ResultPath": "$.powerValues",
24+
"TimeoutSeconds": ${totalExecutionTimeout},
25+
"Catch": [{
26+
"ErrorEquals": [ "States.ALL" ],
27+
"Next": "CleanUpOnError",
28+
"ResultPath": "$.error"
29+
}]
30+
},
31+
"IsCountReached": {
32+
"Type": "Choice",
33+
"Choices": [
34+
{
35+
"Variable": "$.powerValues.iterator.continue",
36+
"BooleanEquals": true,
37+
"Next": "versionPublisher"
38+
}
39+
],
40+
"Default": "Branching"
41+
},
1942
"Branching": {
2043
"Type": "Map",
2144
"Next": "Cleaner",
22-
"ItemsPath": "$.powerValues",
45+
"ItemsPath": "$.powerValues.powerValues",
2346
"ResultPath": "$.stats",
2447
"ItemSelector": {
2548
"input.$": "$",
@@ -83,4 +106,4 @@
83106
"End": true
84107
}
85108
}
86-
}
109+
}

template.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,6 +295,7 @@ Resources:
295295
DefinitionUri: statemachine/statemachine.asl.json
296296
DefinitionSubstitutions:
297297
initializerArn: !GetAtt initializer.Arn
298+
versionPublisherArn: !GetAtt versionPublisher.Arn
298299
executorArn: !GetAtt executor.Arn
299300
cleanerArn: !GetAtt cleaner.Arn
300301
analyzerArn: !GetAtt analyzer.Arn
@@ -303,4 +304,4 @@ Resources:
303304

304305
Outputs:
305306
StateMachineARN:
306-
Value: !Ref powerTuningStateMachine
307+
Value: !Ref powerTuningStateMachine

0 commit comments

Comments
 (0)