forked from cylc/cylc-flow
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathflow.cylc
More file actions
59 lines (51 loc) · 1.65 KB
/
flow.cylc
File metadata and controls
59 lines (51 loc) · 1.65 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
#!Jinja2
[scheduler]
[[events]]
abort on stall timeout = True
stall timeout = PT0S
abort on inactivity timeout = True
inactivity timeout = PT3M
[scheduling]
[[graph]]
R1 = """
# start "local-task" and "remote-task", then run cat-log
local-task:echo & remote-task:echo => cat-log
# add a downstream task to ensure "local-task" and "remote-task"
# succeed (for the reference test)
local-task & remote-task => fin
"""
[runtime]
[[ECHO]]
script = """
cylc__job__wait_cylc_message_started
echo rubbish
echo garbage >&2
cylc message -- 'echo done'
# wait up to PT1M for the cat-log task to succeed
# (the workflow will shut down if cat-log fails)
sleep 60
# fail if the task was not orphaned by this point
false
"""
[[[outputs]]]
echo = "echo done"
[[local-task]]
inherit = ECHO
[[remote-task]]
platform = {{ environ['CYLC_TEST_PLATFORM'] }}
inherit = ECHO
[[cat-log]]
script = """
for TASK in '1/local-task' '1/remote-task'; do
cylc cat-log --debug -f o \
"${CYLC_WORKFLOW_ID}//${TASK}" \
| grep 'rubbish'
cylc cat-log --debug -f e \
"${CYLC_WORKFLOW_ID}//${TASK}" \
| grep 'garbage'
# orphan the sleep command
cylc set "${CYLC_WORKFLOW_ID}//${TASK}"
done
"""
[[fin]]
run mode = skip