Debian Codegraph @

tests/k/cylc-show/04-multi/flow.cylc

raw
1 #!jinja2
2
3 [scheduler]
4 cycle point format = %Y
5 UTC mode = True
6
7 [scheduling]
8 initial cycle point = 2016
9 final cycle point = 2018
10 [[graph]]
11 P1Y = t1[-P1Y]:start => t1 & t2
12
13 [runtime]
14 [[t1]]
15 script = """
16 # Final task runs the show. The other wait after starting.
17 if [[ "${CYLC_TASK_CYCLE_POINT}" == '2018' ]]; then
18 # Ensure workflow knows about current task started
19 cylc__job__wait_cylc_message_started
20 sleep 5
21 cylc show "${CYLC_WORKFLOW_ID}//*/t1" \
22 >"${CYLC_WORKFLOW_RUN_DIR}/show.txt"
23 cylc show --task-def=t1 --task-def=t2 "${CYLC_WORKFLOW_ID}" \
24 >"${CYLC_WORKFLOW_RUN_DIR}/show2.txt"
25 else
26 while [[ ! -s "${CYLC_WORKFLOW_RUN_DIR}/show.txt" ]]; do
27 sleep 1
28 done
29 fi
30 """
31 execution time limit = PT1M
32 [[t2]]
33 [[[meta]]]
34 title = beer
35 description = better than water
36 URL = beer.com
37 abv = 12%