jason810496 commented on code in PR #76284:
URL: https://github.com/apache/airflow/pull/76284#discussion_r4501935222


##########
go-sdk/airflow/serialize.go:
##########
@@ -442,6 +443,12 @@ func (d *DagRef) serializeTaskLocked(task *TaskRef) 
map[string]any {
        if spec.Queue == "" {
                spec.Queue = d.spec.Queue
        }
+       // Python's BaseOperator caps priority_weight to a 32-bit integer, the 
range of the priority_weight

Review Comment:
   It's fine to raise exception Instead of silent casting if the value exceed 
32-bit integer range.



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