| 1 |
[scheduler] |
| 2 |
[[events]] |
| 3 |
abort on stall timeout = True |
| 4 |
stall timeout = PT0S |
| 5 |
abort on inactivity timeout = True |
| 6 |
inactivity timeout = PT3M |
| 7 |
[scheduling] |
| 8 |
cycling mode = integer |
| 9 |
initial cycle point = 1 |
| 10 |
[[graph]] |
| 11 |
R1/1 = """ |
| 12 |
foo:fail? => bar |
| 13 |
foo? & bar => restart |
| 14 |
""" |
| 15 |
R1/2 = """ |
| 16 |
restart[-P1] => foo? |
| 17 |
foo:fail? => bar |
| 18 |
foo? & bar => pub |
| 19 |
""" |
| 20 |
[runtime] |
| 21 |
[[foo]] |
| 22 |
script = false |
| 23 |
[[bar]] |
| 24 |
script = """ |
| 25 |
cylc set --output=succeeded \ |
| 26 |
"${CYLC_WORKFLOW_ID}//${CYLC_TASK_CYCLE_POINT}/foo" |
| 27 |
""" |
| 28 |
[[restart]] |
| 29 |
script = """ |
| 30 |
cylc stop "${CYLC_WORKFLOW_ID}" |
| 31 |
""" |
| 32 |
[[pub]] |
| 33 |
script = """ |
| 34 |
# Extract timestamp lines from logs |
| 35 |
for file in $(find "${CYLC_WORKFLOW_RUN_DIR}/log/schedulerr/" -name '*.*'); do |
| 36 |
grep '.*-.*-.*' "${file}" | sort -u || true |
| 37 |
done | sort | uniq -d > 'log-duplication' |
| 38 |
""" |