Debian Codegraph @

tests/f/cylc-show/06-past-present-future/flow.cylc

raw
1 [scheduler]
2 allow implicit tasks = True
3 [[events]]
4 inactivity timeout = PT1M
5 abort on inactivity timeout = True
6 [scheduling]
7 [[graph]]
8 R1 = """
9 a => b => c? => d
10 c:fail? => kick-c
11 """
12 [runtime]
13 # First run: c stops the scheduler then fails.
14 # On restart, kick-c retriggers c to run 'cylc show'.
15 [[kick-c]]
16 script = cylc trigger "$CYLC_WORKFLOW_ID//1/c"
17 [[c]]
18 script = """
19 if ((CYLC_TASK_SUBMIT_NUMBER == 1)); then
20 cylc stop --now --max-polls=10 --interval=1 $CYLC_WORKFLOW_ID
21 false
22 else
23 # Allow time for c submission => running
24 sleep 2
25 cylc show "$CYLC_WORKFLOW_ID//1/b" >> $CYLC_WORKFLOW_RUN_DIR/show-b.txt
26 cylc show "$CYLC_WORKFLOW_ID//1/c" >> $CYLC_WORKFLOW_RUN_DIR/show-c.txt
27 cylc show "$CYLC_WORKFLOW_ID//1/d" >> $CYLC_WORKFLOW_RUN_DIR/show-d.txt
28 fi
29 """