jscheffl commented on code in PR #43611:
URL: https://github.com/apache/airflow/pull/43611#discussion_r1842884469


##########
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:
   Okay, if it is okay to keep it coupled for the moment... consolidated the 
calls.



-- 
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]

Reply via email to