Skip to content

SageMakerTransformOperator does not deduplicate model name #39502

Closed

Description

@mxuan0

Apache Airflow Provider(s)

amazon

Versions of Apache Airflow Providers

8.7.1

Apache Airflow version

2.7.2

Operating System

amazon linux AMI

Deployment

Amazon (AWS) MWAA

Deployment details

No response

What happened

The SageMakerTransformOperator deduplicates job name before creating the job, but does not deduplicate the model name before creating the model. Upon retry, the operator would fail due to model already exist error.

What you think should happen instead

The operator should apply the same behavior (fail or add timestamp) to both the job name and the model name.

How to reproduce

create a DAG containing a SageMakerTransformOperator step. In the operator config, fix both ModelName and TransformJobName. In airflow UI, run the task until completion in airflow once, and the run the same task for the second time by "clear task".

Anything else

No response

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

Activity

  1. boring-cyborg commented on May 8, 2024

    @boring-cyborg

    Thanks for opening your first issue here! Be sure to follow the issue template! If you are willing to raise PR to address this issue please do so, no need to wait for approval.

  2. mateuslatrova commented on May 8, 2024

    @mateuslatrova
    Contributor

    Hi! I would like to work on this issue after triage!

  3. added and removed
    needs-triagelabel for new issues that we didn't triage yet
    on May 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions