tests/functional/events/24-workflow-timeout/flow.cylc
raw| 1 | #!Jinja2 |
| 2 | [scheduler] |
| 3 | [[events]] |
| 4 | workflow timeout = PT1S |
| 5 | workflow timeout handlers = echo "That was quick!" |
| 6 | abort on workflow timeout = {{ABORT}} |
| 7 | [scheduling] |
| 8 | [[graph]] |
| 9 | R1 = foo |
| 10 | [runtime] |
| 11 | [[foo]] |
| 12 | script = """ |
| 13 | cylc__job__poll_grep_workflow_log "workflow timer timed out" |
| 14 | if [[ "{{ABORT}}" == "True" ]]; then |
| 15 | cylc__job__poll_grep_workflow_log "Workflow shutting down" |
| 16 | fi |
| 17 | """ |