| 1 |
#!Jinja2 |
| 2 |
|
| 3 |
[scheduler] |
| 4 |
UTC mode = True |
| 5 |
|
| 6 |
[scheduling] |
| 7 |
[[graph]] |
| 8 |
R1 = """ |
| 9 |
speaker1:start & speaker2:start => poller |
| 10 |
speaker1:hello1 & speaker1:hello2 & speaker2:greet => finisher |
| 11 |
""" |
| 12 |
[runtime] |
| 13 |
[[speaker1]] |
| 14 |
script = """ |
| 15 |
# Wait for "cylc message started" command |
| 16 |
cylc__job__wait_cylc_message_started |
| 17 |
# Simulate "cylc message", messages written to status file but failed to |
| 18 |
# get sent back to the workflow |
| 19 |
{ |
| 20 |
echo "CYLC_MESSAGE=$(date +%FT%H:%M:%SZ)|INFO|hello1" |
| 21 |
echo "CYLC_MESSAGE=$(date +%FT%H:%M:%SZ)|INFO|hello2" |
| 22 |
} >>"${CYLC_TASK_LOG_ROOT}.status" |
| 23 |
cylc__job__poll_grep_workflow_log -E '1/speaker1/01:running.* \(polled\)hello1' |
| 24 |
cylc__job__poll_grep_workflow_log -E '1/speaker1/01:running.* \(polled\)hello2' |
| 25 |
""" |
| 26 |
[[[outputs]]] |
| 27 |
hello1 = "hello1" |
| 28 |
hello2 = "hello2" |
| 29 |
[[speaker2]] |
| 30 |
script=""" |
| 31 |
# Wait for "cylc message started" command |
| 32 |
cylc__job__wait_cylc_message_started |
| 33 |
# Simulate "cylc message", messages written to status file but failed to |
| 34 |
# get sent back to the workflow |
| 35 |
echo "CYLC_MESSAGE=$(date +%FT%H:%M:%SZ)|INFO|greet" \ |
| 36 |
>>"${CYLC_TASK_LOG_ROOT}.status" |
| 37 |
cylc__job__poll_grep_workflow_log -E '1/speaker2/01:running.* \(polled\)greet' |
| 38 |
""" |
| 39 |
[[[outputs]]] |
| 40 |
greet = "greet" |
| 41 |
[[finisher]] |
| 42 |
script=true |
| 43 |
[[poller]] |
| 44 |
script=cylc poll "${CYLC_WORKFLOW_ID}//*/speaker[12]" |