[scheduler]
    UTC mode = True
    [[events]]
        stall timeout = PT0.2M
        abort on stall timeout = True

[scheduling]
    initial cycle point = 2010-01-01
    final cycle point = 2010-01-05
    runahead limit = P1 # marker
    [[graph]]
        # oops is stuck waiting task to hold back runahead
        R1/T00 = "foo & reloader => oops"
        T00/PT6H = "foo => bar"

[runtime]
    [[foo]]
        script = false
    [[bar, oops]]
        script = true
    [[reloader]]
        script = """
            cylc__job__poll_grep_workflow_log -E "${CYLC_TASK_CYCLE_POINT}/foo/01:running.*failed"
            perl -pi -e 's/(runahead limit = )P1( # marker)/\1 P3\2/' $CYLC_WORKFLOW_RUN_DIR/flow.cylc
            cylc reload $CYLC_WORKFLOW_ID
        """
