diff --git a/src/zenml/orchestrators/step_launcher.py b/src/zenml/orchestrators/step_launcher.py index 6db9c085a8..194b854e41 100644 --- a/src/zenml/orchestrators/step_launcher.py +++ b/src/zenml/orchestrators/step_launcher.py @@ -180,11 +180,13 @@ def launch(self) -> None: pipeline_run_metadata=pipeline_run_metadata, ) - pipeline_model_version, pipeline_run = ( - step_run_utils.prepare_pipeline_run_model_version( - pipeline_run + pipeline_model_version, pipeline_run = ( + step_run_utils.prepare_pipeline_run_model_version( + pipeline_run + ) ) - ) + else: + pipeline_model_version = pipeline_run.model_version request_factory = step_run_utils.StepRunRequestFactory( deployment=self._deployment,