#!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 %}
        [[[directives]]]
            class=serial
            job_type=serial
            notification=never
            resources=ConsumableCpus(1) ConsumableMemory(64mb)
            wall_clock_limit=180,120
    [[stop]]
        script="""
            cylc kill "$CYLC_WORKFLOW_ID//*/t1"
            cylc stop "$CYLC_WORKFLOW_ID"
        """
