-
Notifications
You must be signed in to change notification settings - Fork 192
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
Add 'verdi workflow kill' command #779
Add 'verdi workflow kill' command #779
Conversation
if not self.is_sealed: | ||
self._set_attr(self.ABORTED_KEY, True) | ||
self.seal() |
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.
the self.seal()
should be within the conditional block
self._set_attr(self.ABORTED_KEY, True) | ||
self.seal() | ||
for key, child in self.get_outputs_dict().items(): |
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.
You can pass the desired link type to get_outputs_dict(link_type=LinkType.CALL)
which is safer than relying on the label
@sphuber I implemented your suggestions, thanks! |
I have taken your commits and created a new branch to add some necessary fixes. I created a new PR #821 so I am closing this one |
Adds an
_abort
flag to the WorkCalculation, which is checked before each step. The calculations are also sealed which usually causes them to fail pretty immediately, but also means that thereport
will not contain a nice abort message.The
kill
is propagated to all children through the CALL links.Fixes #661 and #741 for the "old" system, but not 0.11.