-
Notifications
You must be signed in to change notification settings - Fork 26
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
Depreacate EmrContainerSensorAsync and EmrStepSensorAsync #1390
Conversation
b315f8e
to
9636288
Compare
1ec7199
to
549c535
Compare
549c535
to
b99adf0
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1390 +/- ##
==========================================
- Coverage 98.57% 98.55% -0.02%
==========================================
Files 91 91
Lines 5460 5403 -57
==========================================
- Hits 5382 5325 -57
Misses 78 78 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what about the integration DAGs that might be using these classes, are we planning to remove them at a later point of time?
Please add description about why you are doing this change |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We will also need to remove corresponding trigger modules, no?
Yes, I think we should keep it for a while and remove it after we deprecate the whole repo.
Sure. let me reformat and reword it to make it easier to read. |
Yep, we should remove it as well. Thanks for reminding me! |
What's changed
Deprecate
EmrContainerSensorAsync
andEmrStepSensorAsync
and fallback toEmrContainerSensor
andEmrStepSensor
withdeferrable=True
Why this change
The logic of
EmrContainerSensorAsync
andEmrStepSensorAsync
has been contributed back to OSS airflow as part ofEmrContainerSensor
andEmrStepSensor
EmrContainerSensorAsync
astronomer-providers/astronomer/providers/amazon/aws/sensors/emr.py
Lines 38 to 65 in b5a9417
EmrContainerSensor
https://github.com/apache/airflow/blob/999b70178a1f5d891fd2c88af4831a4ba4c2cbc9/airflow/providers/amazon/aws/sensors/emr.py#L318-L346
EmrStepSensorAsync
astronomer-providers/astronomer/providers/amazon/aws/sensors/emr.py
Lines 87 to 113 in b5a9417
EmrStepSensor
https://github.com/apache/airflow/blob/999b70178a1f5d891fd2c88af4831a4ba4c2cbc9/airflow/providers/amazon/aws/sensors/emr.py#L644-L668