| 1 |
[meta] |
| 2 |
test_description = """ |
| 3 |
Test that cylc set <task_id> --out skip satisfies |
| 4 |
all outputs which are required by the graph. |
| 5 |
""" |
| 6 |
proposal url = https://github.com/cylc/cylc-admin/blob/master/docs/proposal-skip-mode.md |
| 7 |
|
| 8 |
[scheduler] |
| 9 |
allow implicit tasks = true |
| 10 |
[[events]] |
| 11 |
expected task failures = 1/bar |
| 12 |
|
| 13 |
[scheduling] |
| 14 |
[[graph]] |
| 15 |
R1 = """ |
| 16 |
# Optional out not created by set --out skip |
| 17 |
foo:no? => not_this_task |
| 18 |
|
| 19 |
# set --out skip creates required, started, submitted |
| 20 |
# and succeeded (unless failed is set): |
| 21 |
foo:yes => foo_done |
| 22 |
foo:submitted => foo_done |
| 23 |
foo:succeeded => foo_done |
| 24 |
foo:started => do_skip |
| 25 |
|
| 26 |
# set --out skip creates failed if that is required |
| 27 |
# by skip mode settings: |
| 28 |
bar:started => do_skip |
| 29 |
bar:failed? => bar_failed |
| 30 |
""" |
| 31 |
|
| 32 |
[runtime] |
| 33 |
[[foo]] |
| 34 |
script = sleep 100 |
| 35 |
[[[skip]]] |
| 36 |
outputs = yes |
| 37 |
[[[outputs]]] |
| 38 |
no = Don't require this task |
| 39 |
yes = Require this task |
| 40 |
|
| 41 |
[[bar]] |
| 42 |
script = sleep 100 |
| 43 |
[[[skip]]] |
| 44 |
outputs = failed |
| 45 |
|
| 46 |
[[do_skip]] |
| 47 |
script = """ |
| 48 |
cylc set --out skip ${CYLC_WORKFLOW_ID}//1/foo \ |
| 49 |
${CYLC_WORKFLOW_ID}//1/bar |
| 50 |
""" |