-
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
stop: fix tracebacks #4776
stop: fix tracebacks #4776
Conversation
* Closes 4758
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If I try to stop two non-existent workflows on this branch:
$ cylc stop foo bar
foo
Done
bar
Done
Shouldn't we distinguish between stopped and not even installed?
In this case, the ServiceFileError
is caught and raised as WorkflowStopped
in network/__init__.py
by the get_location
function, without checking the workflow is actually "stopped", or at least installed.
This behaviour is a bit of a pain, e.g. #4748. Perhaps we should update this logic to raise a "workflow does not exist error" (note this will be raised by orphan jobs left running after the workflow is removed) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Other than Hilary's comment, manually testing ok. Perhaps a functional test would not go amiss?
Drafting this whilst I ponder on the consequences of changing the exception to handle the workflow does not exist case. |
On a job host with That said, if possible it would be good to differentiate in this case, e.g. consider a workflow with "broadcast" tasks being ported to a polling job host. The error |
Telling stopped from non-existent workflows, whilst simple in some cases is tricky in others and somewhat off topic for this issue. Would be nice to do, one of the possible advantages would be assisting the porting of workflows to polling job hosts where Unfortunately in light of the above it might not be possible without changing the way we manage polling job hosts I.E. putting back the |
Have bumped the rest to an 8.1.0 issue - #4798 - because It's not that quick a fix. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hasn't changed since my last review, right?
Other than Hilary's comment, manually testing ok. Perhaps a functional test would not go amiss?
I'll merge this. Patch coverage is 100% anyway. |
cylc stop
traceback #4758