Skip to content

Commit d7bed9a

Browse files
authored
Merge branch 'master' into enable-step-caching
2 parents 9b2db2a + 8006fc4 commit d7bed9a

File tree

2 files changed

+0
-44
lines changed

2 files changed

+0
-44
lines changed

doc/workflows/pipelines/sagemaker.workflow.pipelines.rst

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,8 +110,6 @@ Steps
110110

111111
.. autoclass:: sagemaker.workflow.steps.ProcessingStep
112112

113-
.. autoclass:: sagemaker.workflow.steps.FailStep
114-
115113
Utilities
116114
---------
117115

src/sagemaker/workflow/steps.py

Lines changed: 0 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@ class StepTypeEnum(Enum, metaclass=DefaultEnumMeta):
5050

5151
CONDITION = "Condition"
5252
CREATE_MODEL = "Model"
53-
FAIL = "Fail"
5453
PROCESSING = "Processing"
5554
REGISTER_MODEL = "RegisterModel"
5655
TRAINING = "Training"
@@ -398,44 +397,3 @@ def to_request(self) -> RequestType:
398397
property_file.expr for property_file in self.property_files
399398
]
400399
return request_dict
401-
402-
403-
class FailStep(Step):
404-
"""Pipeline step to indicate failure."""
405-
406-
def __init__(self, name: str = "Fail"):
407-
"""Construct a FailStep.
408-
409-
Causes the pipeline execution to terminate in a failed state.
410-
411-
Args:
412-
name (str): The name of the step.
413-
"""
414-
super(FailStep, self).__init__(name, StepTypeEnum.FAIL)
415-
root_path = f"Steps.{name}"
416-
root_prop = Properties(path=root_path)
417-
root_prop.__dict__["Fail"] = Properties(f"{root_path}.Fail")
418-
self._properties = root_prop
419-
420-
@property
421-
def arguments(self) -> RequestType:
422-
"""The arguments to the particular step service call."""
423-
return {}
424-
425-
@property
426-
def properties(self):
427-
"""The properties of the particular step."""
428-
return self._properties
429-
430-
def to_request(self) -> RequestType:
431-
"""Get the request structure for workflow service calls."""
432-
return {
433-
"Name": self.name,
434-
"Type": self.step_type.value,
435-
"Arguments": self.arguments,
436-
}
437-
438-
@property
439-
def ref(self) -> Dict[str, str]:
440-
"""Get a reference dict for steps"""
441-
return {"Name": self.name}

0 commit comments

Comments
 (0)