[scheduler]
    [[events]]
        abort on stall timeout = True
        stall timeout = PT0S
        abort on inactivity timeout = True
        inactivity timeout = P3M
[scheduling]
    [[graph]]
        R1 = t1
[runtime]
    [[t1]]
        script = """
            if ((CYLC_TASK_TRY_NUMBER == 1)); then
                cylc stop "${CYLC_WORKFLOW_ID}"
                cylc kill "${CYLC_WORKFLOW_ID}//${CYLC_TASK_ID}"
                sleep 120  # Should not matter because the job will be killed
            fi
        """
        [[[job]]]
            execution retry delays = PT0S
