@@ -50,7 +50,6 @@ class StepTypeEnum(Enum, metaclass=DefaultEnumMeta):
50
50
51
51
CONDITION = "Condition"
52
52
CREATE_MODEL = "Model"
53
- FAIL = "Fail"
54
53
PROCESSING = "Processing"
55
54
REGISTER_MODEL = "RegisterModel"
56
55
TRAINING = "Training"
@@ -398,44 +397,3 @@ def to_request(self) -> RequestType:
398
397
property_file .expr for property_file in self .property_files
399
398
]
400
399
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