[cylc]
    [[events]]
        timeout = PT1M

[scheduling]
    cycling mode = integer
    initial cycle point = 1
    final cycle point = 3
    [[dependencies]]
        [[[P1]]]
            graph = """
                fin[-P1] => showdown

                showdown:good => good & ! bad & ! ugly
                showdown:bad => bad & ! good & ! ugly
                showdown:ugly => ugly & ! good & ! bad

                good | bad | ugly => fin
            """
[runtime]
    [[root]]
        script = true
    [[showdown]]
        script = """
            if ! (( ${CYLC_TASK_CYCLE_POINT} % 3 )); then
                cylc message 'The-Good'
            elif ! (( ( ${CYLC_TASK_CYCLE_POINT} + 1 ) % 3 )); then
                cylc message 'The-Bad'
            else
                cylc message 'The-Ugly'
            fi
        """
        [[[outputs]]]
            good = 'The-Good'
            bad = 'The-Bad'
            ugly = 'The-Ugly'
