#!Jinja2
[cylc]
    abort if any task fails = True
{% if GLOBALCFG is not defined %}
    health check interval = PT10S
{% endif %}{# not GLOBALCFG is not defined #}
    [[events]]
        abort on stalled = False
        abort on timeout = True
        timeout = PT1M

[scheduling]
    [[dependencies]]
        graph = t1

[runtime]
    [[t1]]
        script = """
wait "${CYLC_TASK_MESSAGE_STARTED_PID}" 2>/dev/null || true
# Corrupt port file and don't report back to suite
SRVD="$(cylc get-global-config --print-run-dir)/${CYLC_SUITE_NAME}/.service"
echo 'Haha! I have corrupted the port file!' >"${SRVD}/contact"
trap '' EXIT
exit
"""
