@@ -46,16 +46,18 @@ init_workflow "${TEST_NAME_BASE}" <<'__SUITE_RC__'
4646 [[[job]]]
4747 execution retry delays = 3*PT1S
4848 [[baz]]
49- env-script = """
50- trap '' EXIT
51- if ((${CYLC_TASK_SUBMIT_NUMBER} == 1)); then
52- echo "
53- fi
54- """
55- script = true
49+ script = """
50+ echo "Hello Wold
51+ """
52+ [[[events]]]
53+ handler events = submission failed
54+ submission failed handlers = """
55+ cylc broadcast %(workflow)s -p '*' -n 'baz' -s 'script = echo hello world'
56+ cylc trigger %(workflow)s//%(id)s
57+ """
5658 [[[job]]]
57- submission retry delays = 3*PT1S
58- submission polling intervals = 20*PT3S
59+ # submission retry delays = 3*PT5S
60+ # submission polling intervals = 20*PT3S
5961__SUITE_RC__
6062
6163TEST_NAME=$TEST_NAME_BASE -validate
@@ -94,21 +96,21 @@ cylc_ws_json_greps "${TEST_NAME}.stdout" "${TEST_NAME}.stdout" \
9496 " [('job_status',), None]" \
9597 " [('entries', ${FOO1} , 'task_status',), 'succeeded']" \
9698 " [('entries', ${FOO1} , 'run_status',), 1]" \
97- " [('entries', ${FOO1} , 'run_signal',), 'EXIT ']" \
99+ " [('entries', ${FOO1} , 'run_signal',), 'ERR ']" \
98100 " [('entries', ${FOO2} , 'task_status',), 'succeeded']" \
99101 " [('entries', ${FOO2} , 'run_status',), 1]" \
100- " [('entries', ${FOO2} , 'run_signal',), 'EXIT ']" \
102+ " [('entries', ${FOO2} , 'run_signal',), 'ERR ']" \
101103 " [('entries', ${FOO3} , 'task_status',), 'succeeded']" \
102104 " [('entries', ${FOO3} , 'run_status',), 0]" \
103105 " [('entries', ${BAR1} , 'task_status',), 'failed']" \
104106 " [('entries', ${BAR1} , 'run_status',), 1]" \
105- " [('entries', ${BAR1} , 'run_signal',), 'EXIT ']" \
107+ " [('entries', ${BAR1} , 'run_signal',), 'ERR ']" \
106108 " [('entries', ${BAR2} , 'task_status',), 'failed']" \
107109 " [('entries', ${BAR2} , 'run_status',), 1]" \
108- " [('entries', ${BAR2} , 'run_signal',), 'EXIT ']" \
110+ " [('entries', ${BAR2} , 'run_signal',), 'ERR ']" \
109111 " [('entries', ${BAR3} , 'task_status',), 'failed']" \
110112 " [('entries', ${BAR3} , 'run_status',), 1]" \
111- " [('entries', ${BAR3} , 'run_signal',), 'EXIT ']" \
113+ " [('entries', ${BAR3} , 'run_signal',), 'ERR ']" \
112114 " [('entries', ${BAZ1} , 'task_status',), 'succeeded']" \
113115 " [('entries', ${BAZ1} , 'submit_status',), 1]" \
114116 " [('entries', ${BAZ1} , 'run_status',), None]" \
0 commit comments