#!Jinja2

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

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

[runtime]
    [[T]]
        script=sleep 120 & echo $! >file; wait
        platform = {{ environ['CYLC_TEST_PLATFORM'] }}
    [[t1]]
        inherit=T
    [[t2]]
        inherit=T
    [[stop]]
        script="""
            cylc kill "$CYLC_WORKFLOW_ID//" '//1/t1' '//1/t2' || true
            cylc stop $CYLC_WORKFLOW_ID
        """
