#!jinja2
[meta]
    title=Task Event Mail

[scheduler]
    [[mail]]
        footer = see: http://localhost/stuff/%(owner)s/%(workflow)s/

[scheduling]
    [[graph]]
        R1=t1

[runtime]
    [[t1]]
        script=test "${CYLC_TASK_TRY_NUMBER}" -eq 2
        [[[job]]]
            execution retry delays = PT1S
        [[[events]]]
            mail events = failed, retry
