File tree Expand file tree Collapse file tree 2 files changed +5
-7
lines changed Expand file tree Collapse file tree 2 files changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -68,7 +68,7 @@ def submit_pipeline(
68
68
Optional submission result.
69
69
70
70
Raises:
71
- RuntimeError : If the pipeline run fails.
71
+ Exception : If the pipeline run fails.
72
72
"""
73
73
if deployment .schedule :
74
74
logger .warning (
@@ -134,13 +134,11 @@ def submit_pipeline(
134
134
135
135
try :
136
136
self .run_step (step = step )
137
- except Exception as e :
137
+ except Exception :
138
138
failed_steps .append (step_name )
139
139
140
140
if execution_mode == ExecutionMode .FAIL_FAST :
141
- raise RuntimeError (
142
- f"Step { step_name } failed with error: { e } "
143
- )
141
+ raise
144
142
145
143
if failed_steps :
146
144
raise RuntimeError (
Original file line number Diff line number Diff line change @@ -123,7 +123,7 @@ def submit_pipeline(
123
123
placeholder_run: An optional placeholder run for the deployment.
124
124
125
125
Raises:
126
- RuntimeError : If the pipeline run fails.
126
+ ContainerError : If the pipeline run fails.
127
127
128
128
Returns:
129
129
Optional submission result.
@@ -249,7 +249,7 @@ def submit_pipeline(
249
249
error_message = e .stderr .decode ()
250
250
failed_steps .append (step_name )
251
251
if execution_mode == ExecutionMode .FAIL_FAST :
252
- raise RuntimeError ( error_message )
252
+ raise
253
253
else :
254
254
logger .error (error_message )
255
255
You can’t perform that action at this time.
0 commit comments