-
Notifications
You must be signed in to change notification settings - Fork 90
/
flow.cylc
30 lines (30 loc) · 916 Bytes
/
flow.cylc
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
# Test optional isolation of initial and final cycle point graphs.
[scheduler]
[[events]]
stall timeout = PT0S
abort on stall timeout = True
[scheduling]
cycling mode = integer
final cycle point = 3
isolate initial cycle point = True
isolate final cycle point = True
[[graph]]
R1 = "prep => foo"
P1 = "foo"
R1/$ = "foo => clean"
[runtime]
[[prep]]
script = "sleep 5"
[[foo]]
script = """
# No foo instance should start before prep is finished.
grep -s "1/prep running .* succeeded" "${CYLC_WORKFLOW_LOG_DIR}/log"
if ((CYLC_TASK_CYCLE_POINT == 1)); then
sleep 5
fi
"""
[[clean]]
script = """
# Clean should not run before 1/foo is finished.
grep -s "1/foo running .* succeeded" "${CYLC_WORKFLOW_LOG_DIR}/log"
"""