tests/functional/reload/04-inheritance/flow.cylc
raw| 1 | [meta] |
| 2 | title = queue size reload test |
| 3 | description = """change inheritance via a reload.""" |
| 4 | |
| 5 | [scheduling] |
| 6 | [[graph]] |
| 7 | R1 = reloader => inheritor |
| 8 | [runtime] |
| 9 | [[FAM1]] |
| 10 | script = false |
| 11 | [[FAM2]] |
| 12 | script = true |
| 13 | [[reloader]] |
| 14 | script = """ |
| 15 | # change the inheritance of inheritor: |
| 16 | perl -pi -e 's/(inherit = )FAM1( # marker)/\1FAM2\2/' $CYLC_WORKFLOW_RUN_DIR/flow.cylc |
| 17 | # reload |
| 18 | cylc reload $CYLC_WORKFLOW_ID |
| 19 | sleep 5 |
| 20 | """ |
| 21 | [[inheritor]] |
| 22 | inherit = FAM1 # marker |