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

Ensure priority weight is capped at 32-bit integer to prevent roll-over #43611

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

jscheffl
Copy link
Contributor

@jscheffl jscheffl commented Nov 2, 2024

@jscheffl
Copy link
Contributor Author

jscheffl commented Nov 2, 2024

Besides some adjustments because of rework of classes in regards of TeskSDK I think this can also be back-ported to Ariflow 2.10 line to prevent errors in roll-over. Therefore tagging as 2.10.4 milestone... but backport would most likely a re-write of this PR.

@jscheffl jscheffl added this to the Airlfow 2.10.4 milestone Nov 2, 2024
@potiuk
Copy link
Member

potiuk commented Nov 12, 2024

should we have a newsfragment (just in case) just explaining what happened?

@jscheffl jscheffl force-pushed the bugfix/out-of-range-priority-weight branch from c18bfe7 to e9649e6 Compare November 12, 2024 21:24
Comment on lines +878 to +880
self.priority_weight = max(
MINIMUM_PRIORITY_WEIGHT, min(MAXIMUM_PRIORITY_WEIGHT, self.priority_weight)
)
Copy link
Member

Choose a reason for hiding this comment

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

Shoud we use db_safe_priority here instead of re-impl?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Would like to but the implementaiton currently is in airflow-utils - I asusme we want to have task SDK split apart from core?

Still what I can do is implement the same in task-SDK as utility... the old abstract/base operator in core will go away once AIP-72 is complete, correct?

@jscheffl jscheffl added type:bug-fix Changelog: Bug Fixes area:core labels Nov 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants