#!Jinja2

[scheduler]
    [[events]]
        expected task failures = 1/t1

[scheduling]
    [[graph]]
        R1 = t1:start=>stop

[runtime]
    [[t1]]
        script = sleep 120
{% if "CYLC_TEST_PLATFORM" in environ and environ["CYLC_TEST_PLATFORM"] %}
        platform == {{ environ['CYLC_TEST_PLATFORM'] }}
{% endif %}
        [[[job]]]
            execution time limit = PT2M
        [[[directives]]]
            -l select=1:ncpus=1:mem=15mb
    [[stop]]
        script="""
            cylc kill "$CYLC_WORKFLOW_ID//*/t1"
            cylc stop "$CYLC_WORKFLOW_ID"
        """
