[meta]
    title = "Test job abort with retries and failed handler"
[scheduler]
    [[events]]
        expected task failures = 1/foo
[scheduling]
    [[graph]]
        R1 = "foo:fail => handled"
[runtime]
    [[foo]]
        script = """
echo ONE
cylc__job_abort "ERROR: rust never sleeps"
echo TWO"""
        execution retry delays = PT0S
        [[[events]]]
            failed handlers = echo "!!!FAILED!!!" %(event)s %(id)s %(submit_num)s %(message)s
    [[handled]]
        script = true
