Skip to content

Commit 3280903

Browse files
committed
fixing unit tests
1 parent f0ff10f commit 3280903

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

src/zenml/orchestrators/local/local_orchestrator.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ def submit_pipeline(
6868
Optional submission result.
6969
7070
Raises:
71-
RuntimeError: If the pipeline run fails.
71+
Exception: If the pipeline run fails.
7272
"""
7373
if deployment.schedule:
7474
logger.warning(
@@ -134,13 +134,11 @@ def submit_pipeline(
134134

135135
try:
136136
self.run_step(step=step)
137-
except Exception as e:
137+
except Exception:
138138
failed_steps.append(step_name)
139139

140140
if execution_mode == ExecutionMode.FAIL_FAST:
141-
raise RuntimeError(
142-
f"Step {step_name} failed with error: {e}"
143-
)
141+
raise
144142

145143
if failed_steps:
146144
raise RuntimeError(

src/zenml/orchestrators/local_docker/local_docker_orchestrator.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ def submit_pipeline(
123123
placeholder_run: An optional placeholder run for the deployment.
124124
125125
Raises:
126-
RuntimeError: If the pipeline run fails.
126+
ContainerError: If the pipeline run fails.
127127
128128
Returns:
129129
Optional submission result.
@@ -249,7 +249,7 @@ def submit_pipeline(
249249
error_message = e.stderr.decode()
250250
failed_steps.append(step_name)
251251
if execution_mode == ExecutionMode.FAIL_FAST:
252-
raise RuntimeError(error_message)
252+
raise
253253
else:
254254
logger.error(error_message)
255255

0 commit comments

Comments
 (0)