-
Notifications
You must be signed in to change notification settings - Fork 105
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
runtime-v2: fix exit from parallel loop (#830)
- Loading branch information
Showing
8 changed files
with
132 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 33 additions & 0 deletions
33
...src/test/resources/com/walmartlabs/concord/runtime/v2/runner/parallelLoopExit/concord.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
configuration: | ||
debug: true | ||
runtime: concord-v2 | ||
|
||
flows: | ||
default: | ||
- call: "inner" | ||
loop: | ||
items: | ||
- "one" | ||
- "two" | ||
- "three" | ||
- "four" | ||
mode: parallel | ||
|
||
- log: "should not reach here" | ||
|
||
inner: | ||
- log: "inner start: ${item}" | ||
|
||
- if: ${item == "four"} | ||
then: | ||
- checkpoint: "${item}" | ||
|
||
- if: ${item == "two"} | ||
then: | ||
- exit | ||
|
||
- if: ${item == "three"} | ||
then: | ||
- expr: ${sleep.ms(1000)} | ||
|
||
- log: "inner end: ${item}" |
32 changes: 32 additions & 0 deletions
32
...r/src/test/resources/com/walmartlabs/concord/runtime/v2/runner/serialLoopExit/concord.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
configuration: | ||
debug: true | ||
runtime: concord-v2 | ||
|
||
flows: | ||
default: | ||
- call: "inner" | ||
loop: | ||
items: | ||
- "one" | ||
- "two" | ||
- "three" | ||
- "four" | ||
|
||
- log: "should not reach here" | ||
|
||
inner: | ||
- log: "inner start: ${item}" | ||
|
||
- if: ${item == "four"} | ||
then: | ||
- checkpoint: "${item}" | ||
|
||
- if: ${item == "two"} | ||
then: | ||
- exit | ||
|
||
- if: ${item == "three"} | ||
then: | ||
- expr: ${sleep.ms(1000)} | ||
|
||
- log: "inner end: ${item}" |