[meta]
    title = "test workflow for cylc-6 message triggers"

[scheduler]
    UTC mode = True

[scheduling]
    initial cycle point = 20140801T00
    final cycle point = 20141201T00
    [[graph]]
        P2M = """
            foo:out1 => bar
            foo[-P2M]:out2 => baz
        """
[runtime]
    [[foo]]
        script = """
cylc__job__wait_cylc_message_started
cylc message -- "${CYLC_WORKFLOW_ID} "${CYLC_TASK_JOB} "file 1 done"
cylc message -- "${CYLC_WORKFLOW_ID} "${CYLC_TASK_JOB} "file 2 done"
"""
        [[[outputs]]]
            out1 = "file 1 done"
            out2 = "file 2 done"
    [[bar, baz]]
        script = true
