Eason09053360 commented on code in PR #76284:
URL: https://github.com/apache/airflow/pull/76284#discussion_r4502357259
##########
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:
Thanks, switched to an error. `dag.Task()` now rejects a PriorityWeight
outside the int32 range through checkTaskSpec, like the `TriggerRule` and
`StartDate` checks, so the author sees it at parse time.
--
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]