Debian Codegraph @

tests/f/n-window/02-big-window/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 => e => f => g => h
10 b => i => j => f
11 """
12 [runtime]
13 [[a]]
14 script = """
15 set +e
16
17 read -r -d '' gqlDoc <<_DOC_
18 {"request_string": "
19 mutation {
20 setGraphWindowExtent (
21 workflows: [\"${CYLC_WORKFLOW_ID}\"],
22 nEdgeDistance: 5) {
23 result
24 }
25 }",
26 "variables": null}
27 _DOC_
28
29 echo "${gqlDoc}"
30
31 cylc client "$CYLC_WORKFLOW_ID" graphql < <(echo ${gqlDoc}) 2>/dev/null
32
33 set -e
34 """
35 [[c]]
36 script = """
37 cylc show "$CYLC_WORKFLOW_ID//1/a" >> $CYLC_WORKFLOW_RUN_DIR/show-a.txt
38 cylc show "$CYLC_WORKFLOW_ID//1/j" >> $CYLC_WORKFLOW_RUN_DIR/show-j.txt
39 cylc show "$CYLC_WORKFLOW_ID//1/h" >> $CYLC_WORKFLOW_RUN_DIR/show-h.txt
40 """
41
42 [[i]]
43 script = """
44 # Slow 2nd branch down
45 sleep 5
46 """
47
48 [[f]]
49 script = """
50 # test re-trigger of old point
51 cylc trigger "$CYLC_WORKFLOW_ID//1/b"
52 """