#!jinja2

{# e.g. set OUTPUT = ":x" #}
{% set OUTPUT = OUTPUT | default("") %}

[meta]
    title = "polls for success and failure tasks in another workflow"
[scheduler]
    allow implicit tasks = True
[scheduling]
    [[graph]]
        R1 = """
            l-good<{{UPSTREAM}}::good-stuff> & lbad<{{UPSTREAM}}::bad:fail>
            l-mess<{{UPSTREAM}}::messenger{{OUTPUT}}> => done
        """
[runtime]
    [[l-good,lbad]]
        [[[workflow state polling]]]
            interval = PT2S
            max-polls = 20
    [[l-mess]]
        [[[workflow state polling]]]
            interval = PT2S
            max-polls = 20
            message = "the quick brown fox"
