Debian Codegraph @

tests/flakyfunctional/cylc-show/00-simple/flow.cylc

raw
1 #!jinja2
2 [meta]
3 title = a test workflow
4 description = the quick brown fox
5 custom = custard
6 [scheduler]
7 UTC mode = True
8 [scheduling]
9 initial cycle point = 20141106T09
10 final cycle point = 20141106T09
11 [[graph]]
12 PT1H = """
13 bar => foo
14 foo:start => SHOW?
15 SHOW:finish-all => end
16 """
17 [runtime]
18 [[foo]]
19 script = """
20 touch 'foot'
21 while [[ -e 'foot' ]]; do
22 sleep 1
23 done
24 """
25 [[[meta]]]
26 title = a task
27 description = jumped over the lazy dog
28 baz = pub
29 [[bar]]
30 script = true
31 [[end]]
32 script = rm -f '../foo/foot'
33 [[SHOW]]
34 [[show-workflow]]
35 inherit = SHOW
36 script = cylc show "$CYLC_WORKFLOW_ID" >>{{ TEST_OUTPUT_PATH }}-workflow
37 [[show-task]]
38 inherit = SHOW
39 script = cylc show "$CYLC_WORKFLOW_ID" --task-def foo >>{{ TEST_OUTPUT_PATH }}-task
40 [[show-taskinstance]]
41 inherit = SHOW
42 script = """
43 cylc show "$CYLC_WORKFLOW_ID//20141106T0900Z/foo" \
44 >>{{ TEST_OUTPUT_PATH }}-taskinstance
45 """
46 [[show-workflow-json]]
47 inherit = SHOW
48 script = """
49 cylc show --json "$CYLC_WORKFLOW_ID" \
50 >>{{ TEST_OUTPUT_PATH }}-json-workflow
51 """
52 [[show-task-json]]
53 inherit = SHOW
54 script = """
55 cylc show --json "$CYLC_WORKFLOW_ID" --task-def foo \
56 >>{{ TEST_OUTPUT_PATH }}-json-task
57 """
58 [[show-taskinstance-json]]
59 inherit = SHOW
60 script = """
61 cylc show --json "$CYLC_WORKFLOW_ID//20141106T0900Z/foo" \
62 >>{{ TEST_OUTPUT_PATH }}-json-taskinstance
63 """