-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Closed
Labels
component: pipelinesRelates to the SageMaker Pipeline PlatformRelates to the SageMaker Pipeline Platformtype: documentation
Description
Hi, I'm trying to implement a pipeline with @step decorator. So I was following descriptions on this side:
https://docs.aws.amazon.com/sagemaker/latest/dg/pipelines-step-decorator-create-pipeline.html
Paragraph: Define custom dependencies
Code Line: get_step(step_train_result).add_depends_on(step_process_result)
Problem: Function 'add_depends_on' needs a list.
Correct version would be: get_step(step_train_result).add_depends_on([step_process_result])
No description of the function 'add_depends_on' in sdk docs: https://sagemaker.readthedocs.io/en/stable/workflows/pipelines/sagemaker.workflow.pipelines.html#sagemaker.workflow.steps.Step
Found definition in the code:
| def add_depends_on(self, step_names: List[Union[str, "Step", "StepCollection", StepOutput]]): |
Metadata
Metadata
Assignees
Labels
component: pipelinesRelates to the SageMaker Pipeline PlatformRelates to the SageMaker Pipeline Platformtype: documentation