diff --git a/python/lsst/pipe/base/_status.py b/python/lsst/pipe/base/_status.py index b517cc1e7..ad26a8109 100644 --- a/python/lsst/pipe/base/_status.py +++ b/python/lsst/pipe/base/_status.py @@ -39,6 +39,7 @@ "UnprocessableDataError", "AnnotatedPartialOutputsError", "NoWorkFound", + "UpstreamFailureNoWorkFound", "RepeatableQuantumError", "AlgorithmError", "InvalidQuantumError", @@ -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