ashb commented on code in PR #43611:
URL: https://github.com/apache/airflow/pull/43611#discussion_r1842878453
##########
task_sdk/src/airflow/sdk/definitions/baseoperator.py:
##########
@@ -869,6 +874,11 @@ def __init__(
validate_instance_args(self, BASEOPERATOR_ARGS_EXPECTED_TYPES)
+ # Ensure priority_weight is within the valid range
+ self.priority_weight = max(
+ MINIMUM_PRIORITY_WEIGHT, min(MAXIMUM_PRIORITY_WEIGHT,
self.priority_weight)
+ )
Review Comment:
There's still loads of cross imports to fix up, so for now I'd say have one
version
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]