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

Bring back SHUTDOWN-related constants #34063

Merged
merged 1 commit into from
Sep 4, 2023

Conversation

uranusjr
Copy link
Member

@uranusjr uranusjr commented Sep 4, 2023

This should restore code compatibility to 2.6 and prior. Note that the constants would not appear in documentation since they are deprecated and not use in Airflow core anyway anymore.

See discussion around #33746 (comment)

The value on JobState was not brought back since that particular enum was only added in 2.7 and should not technically cause any compatibility issues. I also added some additional docstrings so those constants would not appear in documentation added in #34059. Those who already know about the values can continue to use them, but this should reduce additional usages.

@potiuk
Copy link
Member

potiuk commented Sep 4, 2023

Pending test fixes

@uranusjr uranusjr force-pushed the bring-back-shutdown-values branch 2 times, most recently from 82eb4df to 64059a8 Compare September 4, 2023 08:40
This should restore code compatibility to 2.6 and prior. Note that the
constants would not appear in documentation since they are deprecated
and not use in Airflow core anyway anymore.
Copy link
Contributor

@daniel-dylag-openx daniel-dylag-openx left a comment

Choose a reason for hiding this comment

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

The failing test is a known flaky test so re-run or merge with main might fix it

@potiuk
Copy link
Member

potiuk commented Sep 4, 2023

The failing test is a known flaky test so re-run or merge with main might fix it

BTW. I think I fixed the flaky test in #34075 so likely rebasing it woudl be flaky-free, but I re-run those failing tests now.

@potiuk potiuk merged commit 1ae2976 into apache:main Sep 4, 2023
42 checks passed
@uranusjr uranusjr deleted the bring-back-shutdown-values branch September 5, 2023 06:22
@ephraimbuddy ephraimbuddy added this to the Airflow 2.7.2 milestone Oct 3, 2023
@ephraimbuddy ephraimbuddy added the type:misc/internal Changelog: Misc changes that should appear in change log label Oct 3, 2023
ephraimbuddy pushed a commit that referenced this pull request Oct 5, 2023
This should restore code compatibility to 2.6 and prior. Note that the
constants would not appear in documentation since they are deprecated
and not use in Airflow core anyway anymore.

(cherry picked from commit 1ae2976)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:misc/internal Changelog: Misc changes that should appear in change log
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants