Skip to content

Commit

Permalink
Add subclass of NoWorkFound that indicates an upstream failure.
Browse files Browse the repository at this point in the history
  • Loading branch information
TallJimbo committed Oct 17, 2024
1 parent a403324 commit 02d5973
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions python/lsst/pipe/base/_status.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
"UnprocessableDataError",
"AnnotatedPartialOutputsError",
"NoWorkFound",
"UpstreamFailureNoWorkFound",
"RepeatableQuantumError",
"AlgorithmError",
"InvalidQuantumError",
Expand Down Expand Up @@ -67,6 +68,13 @@ class NoWorkFound(BaseException):
"""


class UpstreamFailureNoWorkFound(NoWorkFound):
"""A specialization of `NoWorkFound` that indicates that an upstream task
had a problem that was ignored (e.g. to prevent a single-detector failure
from bringing down an entire visit).
"""


class RepeatableQuantumError(RuntimeError):
"""Exception that may be raised by PipelineTasks (and code they delegate
to) in order to indicate that a repeatable problem that will not be
Expand Down

0 comments on commit 02d5973

Please sign in to comment.