Skip to content

Documentation of @step decorator #4416

@JurijGass

Description

@JurijGass

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

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions