Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deprecate SageMakerTrainingOperatorAsync #1463

Merged
merged 5 commits into from
Feb 18, 2024

Conversation

Lee-W
Copy link
Contributor

@Lee-W Lee-W commented Jan 30, 2024

Deprecate SageMakerTrainingOperatorAsync and proxy them to their Airflow OSS provider's counterpart.

this needs to wait for the release of apache/airflow#36685

@Lee-W Lee-W changed the title Deprecate sage maker training operator async Deprecate SageMakerTrainingOperatorAsync Jan 30, 2024
Copy link
Collaborator

@pankajkoti pankajkoti left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also leaving a comment to remember updating the provider version once it's released.

@Lee-W Lee-W force-pushed the deprecate-SageMakerTrainingOperatorAsync branch from 534951a to aa734a8 Compare January 31, 2024 09:45
Copy link

codecov bot commented Jan 31, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (040e724) 98.27% compared to head (605f33d) 98.24%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1463      +/-   ##
==========================================
- Coverage   98.27%   98.24%   -0.04%     
==========================================
  Files          91       91              
  Lines        4648     4609      -39     
==========================================
- Hits         4568     4528      -40     
- Misses         80       81       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@Lee-W Lee-W force-pushed the deprecate-SageMakerTrainingOperatorAsync branch from aa734a8 to 10a3c8f Compare February 7, 2024 08:08
if event and event["status"] == "error":
raise AirflowException(event["message"])
raise AirflowException("No event received in trigger callback")
super().__init__(deferrable=True, **kwargs)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

shall we pass args too?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is not needed, the upstream operator has no positional args. It only has named/keyword args.

Copy link
Contributor

@pankajastro pankajastro left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@pankajkoti
Copy link
Collaborator

Tested the DAG it worked fine with the RC, din't not encounter the issue that Wei has reported on RC Voting thread.

Screenshot 2024-02-14 at 1 50 20 PM Screenshot 2024-02-14 at 1 57 38 PM

setup.cfg Outdated
Comment on lines 47 to 48
# Update version when the below RC is released
apache-airflow-providers-amazon>=8.18.0rc1
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
# Update version when the below RC is released
apache-airflow-providers-amazon>=8.18.0rc1
apache-airflow-providers-amazon>=8.18.0

setup.cfg Outdated
Comment on lines 122 to 123
# Update version when the below RC is released
apache-airflow-providers-amazon>=8.18.0rc1
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
# Update version when the below RC is released
apache-airflow-providers-amazon>=8.18.0rc1
apache-airflow-providers-amazon>=8.18.0

@pankajkoti pankajkoti force-pushed the deprecate-SageMakerTrainingOperatorAsync branch from 35f1b4c to 2f23555 Compare February 14, 2024 08:32
@pankajkoti pankajkoti mentioned this pull request Feb 15, 2024
19 tasks
setup.cfg Outdated Show resolved Hide resolved
setup.cfg Outdated Show resolved Hide resolved
@pankajkoti pankajkoti force-pushed the deprecate-SageMakerTrainingOperatorAsync branch from eff7b31 to 605f33d Compare February 18, 2024 06:11
@pankajkoti
Copy link
Collaborator

I will merge this so that we can test our regressions DAGs together on all RCs and create a separate PR later to update the versions in setup.cfg to released versions from the current RCs

@pankajkoti pankajkoti marked this pull request as ready for review February 18, 2024 06:30
@pankajkoti pankajkoti merged commit 2cd1e45 into main Feb 18, 2024
11 checks passed
@pankajkoti pankajkoti deleted the deprecate-SageMakerTrainingOperatorAsync branch February 18, 2024 06:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants