[meta]
    title = "start and finish trigger demo"
    description = """
A:start  => B: means B triggers after A starts running.
A:finish => B: means B triggers after A finishes, by success or failure.
              """
[scheduling]
    initial cycle point = 20120108T00
    final cycle point = 20120108T18
    [[dependencies]]
        [[[T00, T12]]]
           graph = """
        foo:finish => A
        A:start => B
# A triggers when foo finishes (success or failure)
# B triggers when A starts running
                   """
[runtime]
    [[foo]]
        script = """
echo "HELLO"
sleep 10
if [[ $( cylc cycle-point --print-hour ) == 00 ]]; then
    cylc task message "Succeeding now"
    echo "BYE"
else
    cylc task message -p CRITICAL "Failing now!"
    exit 1
fi"""
        [[[meta]]]
            description = "A task that alternately succeeds (0 hours) and fails (12 hours)"
