aditya-rai-5 opened a new pull request, #75584:
URL: https://github.com/apache/airflow/pull/75584

   Task serialization compares timedelta objects with defaults stored as 
seconds, so matching `retry_delay` and `execution_timeout` values are 
unnecessarily repeated in each task.
   
   Normalize timedelta values before comparing them with client and schema 
defaults. Preserve explicit overrides from Dag defaults, operator constructor 
arguments, and mapped task `partial_kwargs`, including numeric retry delays and 
`retries=0` when the client default differs.
   
   Add round-trip coverage for ordinary and mapped tasks, and update existing 
serialization expectations to omit redundant retry delays.
   
   ### Upgrade impact
   
   Removing these fields changes serialized Dag hashes for affected Dags, 
including those using the standard retry delay. Their first successful parse 
after upgrading will produce a new Dag version even without changes to the Dag 
source.
   
   ### Validation
   
   - [x] Ruff formatting and lint checks
   - [x] Working-tree whitespace check
   - [ ] Serialization tests and related model tests
   - [ ] Required static checks and checks listed by `breeze verify`
   - [ ] Before/after serialization performance measurement
   
   closes: #75547
   
   ---
   
   ##### Was generative AI tooling used to co-author this PR?
   
   - [X] Yes — Codex (GPT-6)
   
   Some part of implementation: Codex (GPT-6) following [the 
guidelines](https://github.com/apache/airflow/blob/main/contributing-docs/05_pull_requests.rst#gen-ai-assisted-contributions)
   


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