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

Fix try_number handling when db isolation enabled #38943

Conversation

dstandish
Copy link
Contributor

There was an error in the refresh_from_db code, and because of try_number inconsistency, the same run was going into two different log files. There is some ugliness here, but some ugliness is unavoidable when dealing with try_number as it is right now.

There was an error in the refresh_from_db code, and because of try_number inconsistency, the same run was going into two different log files.  There is some ugliness here, but some ugliness is unavoidable when dealing with try_number as it is right now.

(cherry picked from commit 50340786d779244d4c78eb3e3a9d9538679a2ede)
@dstandish
Copy link
Contributor Author

this, dealing, as it does, with try_number, is a weird one, so i'm gonna let it go overnight to see if @uranusjr @potiuk @jedcunningham want to give it a look

Copy link
Member

@jedcunningham jedcunningham left a comment

Choose a reason for hiding this comment

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

It all seems to make sense to me, but take my review with a grain of salt since 1) try number is confusing and 2) I'm not that familiar with our use of pydantic in this context.

@dstandish dstandish merged commit d39367b into apache:main Apr 12, 2024
42 checks passed
@dstandish dstandish deleted the fix-try_number-handling-when-db-isolation-enabled branch April 12, 2024 16:17
@eladkal eladkal added this to the Airflow 2.9.1 milestone Apr 12, 2024
@eladkal eladkal added the type:bug-fix Changelog: Bug Fixes label Apr 12, 2024
@jedcunningham jedcunningham added the AIP-44 Airflow Internal API label Apr 26, 2024
@jedcunningham jedcunningham removed this from the Airflow 2.9.1 milestone Apr 26, 2024
@ephraimbuddy ephraimbuddy added this to the Airflow 2.10.0 milestone Jun 3, 2024
@jedcunningham jedcunningham added changelog:skip Changes that should be skipped from the changelog (CI, tests, etc..) and removed type:bug-fix Changelog: Bug Fixes labels Aug 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
AIP-44 Airflow Internal API area:logging area:serialization changelog:skip Changes that should be skipped from the changelog (CI, tests, etc..)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

9 participants