#!Jinja2

[scheduler]
    [[events]]
        abort on stall timeout = True
        stall timeout = PT0S
        expected task failures = 1/foo

[scheduling]
    [[graph]]
        R1 = foo:start => bar

[runtime]
    [[bar]]
        script = """
            cylc__job__wait_cylc_message_started
            cylc reload "${CYLC_WORKFLOW_ID}"
            cylc__job__poll_grep_workflow_log -F 'Reload completed'
            cylc kill "${CYLC_WORKFLOW_ID}//1/foo"
            cylc__job__poll_grep_workflow_log -E '1/foo/01:failed\(held\).* job killed'
        """
        [[[job]]]
            execution time limit = PT1M
    [[foo]]
        script=sleep 61
        platform = {{ CYLC_TEST_PLATFORM }}
