#!Jinja2
#
[scheduler]
   [[events]]
       abort on stall timeout = True
       stall timeout = PT0S

[scheduling]
    cycling mode = integer
    initial cycle point = 1
    final cycle point = 5
    [[graph]]
        R1 = "set-stop-point => reload => t1"
        P1 = "t1[-P1] => t1"

[runtime]
    [[set-stop-point]]
        script = cylc stop "${CYLC_WORKFLOW_ID}//3"
    [[reload]]
        script = """
            cylc__job__wait_cylc_message_started
            cylc reload "${CYLC_WORKFLOW_ID}"
            cylc__job__poll_grep_workflow_log -F 'Reload completed'
        """
        [[[job]]]
            execution time limit = PT1M
    [[t1]]
        script = true
