Skip to content

Commit b8a61bb

Browse files
committed
Catch pipeline failures in preprocessing.
It may be possible to run main pipelines even if preprocessing fails or cannot be attempted; defer that decision to quantum graph generation.
1 parent 3fddf64 commit b8a61bb

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

python/activator/middleware_interface.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -561,7 +561,12 @@ def prep_butler(self) -> None:
561561
self._transfer_data(all_datasets, calib_datasets)
562562

563563
with time_this_to_bundle(bundle, action_id, "prep_butlerPreprocessTime"):
564-
self._run_preprocessing()
564+
try:
565+
self._run_preprocessing()
566+
except NoGoodPipelinesError:
567+
_log.exception("Preprocessing pipelines not runnable, trying main pipelines anyway.")
568+
except (PipelinePreExecutionError, PipelineExecutionError):
569+
_log.exception("Preprocessing pipeline failed, trying main pipelines anyway.")
565570

566571
# IMPORTANT: do not remove or rename entries in this list. New entries can be added as needed.
567572
enforce_schema(bundle, {action_id: ["prep_butlerTotalTime",

0 commit comments

Comments
 (0)