-
Notifications
You must be signed in to change notification settings - Fork 94
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Errant flow merge when triggering #6361
Comments
Hmm, there's nothing untoward here, this is the intended behaviour, all triggers default to
|
But maybe the default should not be "all flows in the workflow", but "all flows on the task"? |
If the task has already spawned, then the trigger should only apply to the spawned flows (see this line in the set proposal):
I would expect this logic to extend to trigger. If it hasn't already spawned then it should get all flows. This default was well debated at the time. I.E. It depends on the pool state. |
Right so this is a bug then. The default should be "all flows on the task", which is meaningless if it hasn't spawned yet, in which case it should be "all flows in the workflow"? |
👍 So long as we're strictly talking n=0 here. The proposals already define how |
What about setting/triggering a task that already ran and is no longer in n=0? Should it not use the flow number(s) from last time it ran? I tested this and this is the case for n>1 in the past. However for n=1 in the past it is flow-merging like described for n=0. |
I don't think there's any special logic for n<0. A historical task in one flow might be a future task in another flow so the previous run might not have any relevance to the trigger. |
Just to confirm, the plan was:
@oliver-sanders - it seems like you agree but initially did not realize that @MetRonnie was specifically talking about triggering an n=0 task? |
Closed by #6367 |
Description
If
foo
fails in flow 1 whilebar
is in flow 2, triggeringfoo
without providing a flow in the options causes it to run in flows 1 & 2.This is because the default
--flow all
is causing it to pick all active flow numbers in the entire task pool instead of all active flow numbers for the task in question.cylc-flow/cylc/flow/task_pool.py
Lines 2077 to 2078 in 293c3cc
cylc-flow/cylc/flow/task_pool.py
Lines 2025 to 2037 in 293c3cc
Looking at the code, this bug probably affects
cylc set
tooThe text was updated successfully, but these errors were encountered: