[meta]
    title = queue size reload test
    description = """change family triggering order via a reload."""

[scheduling]
    [[graph]]
        R1 = """
                   reloader => inter => BAR? # marker1
                   BAR:finish-all => FOO # marker2
                """
[runtime]
    [[inter]]
    [[reloader]]
        script = """
# change the order of FOO and BAR in the graphing section:
perl -pi -e 's/(reloader => inter => )BAR\?( # marker1)/\1FOO?\2/' $CYLC_WORKFLOW_RUN_DIR/flow.cylc
perl -pi -e 's/( )BAR:finish-all => FOO( # marker2)/\1FOO:finish-all => BAR\2/' $CYLC_WORKFLOW_RUN_DIR/flow.cylc
# reload
cylc reload "${CYLC_WORKFLOW_ID}"
cylc__job__poll_grep_workflow_log -F 'Reload completed'
"""
    [[FOO, BAR]]
        script = true
    [[a,b,c,d]]
        inherit = FOO
    [[e,f,g,h]]
        inherit = BAR
