-
Notifications
You must be signed in to change notification settings - Fork 94
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
58 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# "cylc reset" should set required outputs just like natural completion: | ||
# - spawn children | ||
# - trigger event handlers | ||
# - complete an incomplete task | ||
|
||
[scheduling] | ||
[[graph]] | ||
R1 = """ | ||
foo-reset # test default reset | ||
foo => foo-post | ||
|
||
bar? => bar-post | ||
bar:fail? => bar-reset # test explicit reset | ||
""" | ||
|
||
[runtime] | ||
[[foo, bar]] | ||
script = false | ||
[[[events]]] | ||
succeeded handlers = "echo !!!! SUCCEEDED !!!!" | ||
|
||
[[foo-reset]] | ||
script = """ | ||
cylc__job__poll_grep_workflow_log -E "1/foo .*failed" | ||
cylc reset "${CYLC_WORKFLOW_ID}//1/foo" | ||
""" | ||
|
||
[[bar-reset]] | ||
script = """ | ||
cylc reset --out=succeeded "${CYLC_WORKFLOW_ID}//1/bar" | ||
""" | ||
[[foo-post, bar-post]] | ||
script = true |
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,16 @@ | ||
[scheduling] | ||
[[graph]] | ||
R1 = """ | ||
long | ||
a => b => c | ||
a_cold => a | ||
b_cold => b | ||
c_cold => c | ||
""" | ||
|
||
[runtime] | ||
[[long]] | ||
script = sleep 600 | ||
|
||
[[a, b, c, a_cold, b_cold, c_cold]] | ||
script = true |
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,9 @@ | ||
[scheduling] | ||
[[graph]] | ||
R1 = """ | ||
long # kill me | ||
""" | ||
|
||
[runtime] | ||
[[long]] | ||
script = sleep 600 |