tests/functional/spawn-on-demand/11-hold-not-spawned/flow.cylc
raw| 1 | # Test holding a task that hasn't spawned yet. |
| 2 | [scheduler] |
| 3 | [[events]] |
| 4 | inactivity timeout = PT1M |
| 5 | abort on inactivity timeout = True |
| 6 | [scheduling] |
| 7 | [[graph]] |
| 8 | R1 = "holder => holdee & stopper" |
| 9 | [runtime] |
| 10 | [[holder]] |
| 11 | script = """ |
| 12 | cylc hold "$CYLC_WORKFLOW_ID//1/holdee" |
| 13 | """ |
| 14 | [[holdee]] |
| 15 | script = true |
| 16 | [[stopper]] |
| 17 | script = """ |
| 18 | cylc__job__poll_grep_workflow_log "\[1/holdee.* holding \(as requested earlier\)" -E |
| 19 | cylc stop $CYLC_WORKFLOW_ID |
| 20 | """ |