Hi Hilary,
Thanks for verifying that should work. Unfortunately, I’ve just tried it again and it’s not working.
When the xtrigger is satisfied task1 runs. When task1 has completed successfully task2 does not run. The workflow stalls with task2 waiting for the xtrigger to run again.
This is with Cylc-8.5.3
Thanks,
Ros
[scheduling]
cycling mode = integer
initial cycle point = 1
final cycle point = 2
[[xtriggers]]
poll = poll_flags(flags_dir="/path/to/incoming/data", pattern="dataset-*.txt", cycle="%(point)s", sequential=True):PT10S
[[graph]]
P1 = """
@poll => task1 & task2
task1 => task2
"""
[runtime]
[[root]
script = "echo 'Root script called'"
[[COMMON]]
[[[environment]]]
DATASET_DIR = $poll_dataset_dir
[[task1]]
inherit = COMMON
script = "echo 'Running task1'; echo $DATASET_DIR; sleep 5s"
[[task2]]
inherit = COMMON
script = "echo 'Running task2'; echo $DATASET_DIR; sleep 5s"
