# "fail" qualifier with execution retries

**URL:** <https://cylc.discourse.group/t/fail-qualifier-with-execution-retries/571>\
**Category:** Cylc Support\
**Created:** [December 8, 2022, 4:38am UTC](https://cylc.discourse.group/t/fail-qualifier-with-execution-retries/571 "2022-12-08T04:38:32Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![prajeeshag](https://yyz2.discourse-cdn.com/free1/user_avatar/cylc.discourse.group/prajeeshag/32/212_2.png) [@prajeeshag](https://cylc.discourse.group/u/prajeeshag)\
**Post date:** [December 8, 2022, 4:38am UTC](https://cylc.discourse.group/t/fail-qualifier-with-execution-retries/571/1 "2022-12-08T04:38:32Z")

</div>

Hi,

I have a task (taskA) which retries for 1 hour with 5 minutes interval (using exectution retry interval). In such case does the qualifier “fail” trigger only after all the retries?

eg.  
P1D = taskA:fail =\> taskB  
when does the taskB gets triggered? Is it after all the retries or is it after the first failed state of taskA?

And if it is after the first failed state of taskA how to implement a dependency where it waits for the final state of taskA?

Thank you,

---

<div class="post-metadata">

**Author:** ![oliver.sanders](https://yyz2.discourse-cdn.com/free1/user_avatar/cylc.discourse.group/oliver.sanders/32/110_2.png) [@oliver.sanders](https://cylc.discourse.group/u/oliver.sanders)\
**Post date:** [December 8, 2022, 10:14am UTC](https://cylc.discourse.group/t/fail-qualifier-with-execution-retries/571/2 "2022-12-08T10:14:13Z")

</div>

Hello,

Tasks will only enter the `failed` state after exhausting _all_ of their `execution retry delays` so for your example `taskB` will only get triggered after the final retry of `taskA` failed.

It also works the same with the `submit-failed` state and `submit retry delays`.

Cheers,  
Oliver
