-
Notifications
You must be signed in to change notification settings - Fork 93
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
cylc remove
and/or cylc forget
?
#4728
Comments
I guess the n>0 use cases are the opposite of set-outputs i.e. unset-outputs. Could do something like |
Good point.
? |
Not sure about this. I think the vast majority of cases will be setting outputs (the use cases for unset are much more obscure) so I wouldn't want to have to specify Personally I don't mind if we stick with
|
The use case I am thinking of is that I want go back and rerun parts of a flow because, for example, system problems mean I've lost some of the data generated by the flow or perhaps there has been some data corruption or an error in the configuration of one of the tasks. Therefore, what I want to do is to start a new flow and then get rid of the old flows which means removing any tasks from the previous flows from n=0 (which are likely to be either held or failed in this scenario). We could perhaps add a |
A quick response on this point (I have not thought much beyond this, so far). I don't think (1) is necessarily a problem. A workflow consists (potentially) of multiple flows. If you stop all flows, the scheduler shuts down because there's nothing left for it to do (and a restart won't do anything). If you "stop the workflow", aka "stop the scheduler", the scheduler shuts down without stopping any flows, and the workflow (with all of its flows) can be restarted again. In the middle ground, it seems pretty natural to me to "stop" a flow; which will not cause the scheduler to shut down if it still has other flows to manage. However, you raise an interesting point... which I take to mean we should consider allowing On 2., we really need both. Removing a flow number from all n=0 tasks to prevent that flow from continuing is quite nice, conceptually, and it would work perfectly well if we had a 100% spawn-on-demand scheduler. Unfortunately we don't have that, hence active-waiting tasks. So: we need to: |
That's sounds really tricky to me - I'm not convinced we should support it (which is, perhaps, why I still question supporting flows in |
|
Another thing that perhaps argues against using This is somewhat off-topic for this issue, I'll open another one... #4741 |
From project meeting:
|
Superseded by #5643 |
The
cylc remove
command currently:n=0
poolFrom @oliver-sanders (end of #4686 (comment) ):
cylc remove
ton>0
to make the scheduler forget that a task did run in a particular flow?cylc forget
?cylc remove
andcylc set-outputs
(or whatever that becomes aftercylc set-outputs
: use cases and trigger compatibility #4727)?The text was updated successfully, but these errors were encountered: