Debian Codegraph @

tests/f/restart/submit-failed/flow.cylc

raw
1 #!jinja2
2 {%- set TEST_DIR = environ['TEST_DIR'] %}
3
4 # TODO SoD: added new "remove" tasks to get rid of submit-failed one and allow
5 # shutdown, in lieu of suicidge triggers. What's the best way to handle this?
6 [scheduler]
7 UTC mode = True
8 [[events]]
9 abort on stall timeout = True
10 stall timeout = PT3M
11
12 [scheduling]
13 initial cycle point = 20130923T00
14 final cycle point = 20130923T00
15 [[graph]]
16 R1 = """
17 submit_failed_task:submit-fail? => shutdown
18 submit_failed_task:submitted? => error
19
20 shutdown => output_states
21 output_states => remove => finish
22 """
23
24 [runtime]
25 [[submit_failed_task]]
26 script = """
27 exit 1 # Should not submit, so this shouldn't run!
28 """
29 platform = {{ environ['CYLC_TEST_PLATFORM'] }}
30 [[[meta]]]
31 description = "Submit-failed task (runs before restart)"
32 [[remove]]
33 script = """
34 cylc remove "${CYLC_WORKFLOW_ID}//${CYLC_TASK_CYCLE_POINT}/submit_failed_task"
35 """
36 [[error]]
37 script = """
38 cylc message -- "ERROR:this-task-should-have-submit-failed"
39 exit 1
40 """
41
42 {% include 'flow-runtime-restart.cylc' %}