# Cylc xtrigger question

**URL:** <https://cylc.discourse.group/t/cylc-xtrigger-question/1255>\
**Category:** Cylc Support\
**Created:** [October 7, 2025, 10:38am UTC](https://cylc.discourse.group/t/cylc-xtrigger-question/1255 "2025-10-07T10:38:22Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![Rosalyn\_Hatcher](https://yyz2.discourse-cdn.com/free1/user_avatar/cylc.discourse.group/rosalyn_hatcher/32/39_2.png) [@Rosalyn\_Hatcher](https://cylc.discourse.group/u/Rosalyn_Hatcher)\
**Post date:** [October 9, 2025, 8:43am UTC](https://cylc.discourse.group/t/cylc-xtrigger-question/1255/6 "2025-10-09T08:43:26Z")

</div>

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

 ![xtrigger-test](https://global.discourse-cdn.com/free1/uploads/cylc1/original/1X/ec85890cb67fbfd27d0f7e5fcb70e6fce3ac7be8.png)

```auto

[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"

```

---

_[View the full topic](https://cylc.discourse.group/t/cylc-xtrigger-question/1255)._
