tests/f/workflow-state/upstream/flow.cylc
raw| 1 | [meta] |
| 2 | title = "One task takes 20 sec to succeed, another to fail, another to send a message." |
| 3 | |
| 4 | [scheduling] |
| 5 | [[graph]] |
| 6 | R1 = """ |
| 7 | good-stuff & bad? |
| 8 | bad:fail? => handler |
| 9 | messenger:x => done |
| 10 | """ |
| 11 | |
| 12 | [runtime] |
| 13 | [[done]] |
| 14 | [[good-stuff]] |
| 15 | script = "sleep 20" |
| 16 | [[bad]] |
| 17 | script = "sleep 20; false" |
| 18 | [[messenger]] |
| 19 | script = """ |
| 20 | sleep 20 |
| 21 | cylc message 'the quick brown fox' |
| 22 | """ |
| 23 | [[[outputs]]] |
| 24 | x = "the quick brown fox" |
| 25 | [[handler]] |
| 26 | script = true |