Skip to content
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

Continue execution after task failure (DM-33339) #164

Merged
merged 1 commit into from Jan 27, 2022
Merged

Conversation

andy-slac
Copy link
Collaborator

In a single-process mode the MPGraphExecutor will try to execute remaining
tasks after one of the tasks fails (skipping the tasks that depend on
outputs of failed tasks) instead of exiting on an exception. This needed
some changes in exception handling, instead of passing an original
exeption raised by a task, it now raises MPGraphExecutorError, this is
consistent with multi-process case. Task timeouts are not handled in
single-process case.

Checklist

  • ran Jenkins
  • added a release note for user-visible changes to doc/changes

Copy link
Contributor

@MichelleGower MichelleGower left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a couple of minor questions/comments. I did run a ci_hsc_gen3 isr-only test where the previous code just aborted, but this code tried all of the isr Quanta despite the failure. Changes approved for merging.

python/lsst/ctrl/mpexec/mpGraphExecutor.py Show resolved Hide resolved
python/lsst/ctrl/mpexec/mpGraphExecutor.py Outdated Show resolved Hide resolved
python/lsst/ctrl/mpexec/mpGraphExecutor.py Outdated Show resolved Hide resolved
python/lsst/ctrl/mpexec/mpGraphExecutor.py Outdated Show resolved Hide resolved
python/lsst/ctrl/mpexec/mpGraphExecutor.py Outdated Show resolved Hide resolved
python/lsst/ctrl/mpexec/mpGraphExecutor.py Show resolved Hide resolved
In a single-process mode the MPGraphExecutor will try to execute remaining
tasks after one of the tasks fails (skipping the tasks that depend on
outputs of failed tasks) instead of exiting on an exception. This needed
some changes in exception handling, instead of passing an original
exeption raised by a task, it now raises MPGraphExecutorError, this is
consistent with multi-process case. Task timeouts are not handled in
single-process case.
@andy-slac andy-slac merged commit 5a11c44 into main Jan 27, 2022
@andy-slac andy-slac deleted the tickets/DM-33339 branch January 27, 2022 06:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants