jason810496 opened a new pull request, #75932:
URL: https://github.com/apache/airflow/pull/75932

   Records in the Execution API's `AGENTS.md` the rule that #75795 had to 
enforce by hand.
   
   `ti_run` deserialized the whole serialized Dag on every task start to read 
`arg_bindings` and `execution_timeout`, two fields only a stub (lang-SDK) task 
uses. #75795 gated that load on `ti.is_stub`, but nothing wrote the rule down, 
so the next route that wants a task attribute can reintroduce the same cost.
   
   ```markdown
   - Don't load the serialized Dag on a per-task hot path such as `ti_run`: 
read the value from a `task_instance` column, or gate the load behind one as 
`ti.is_stub` does.
   ```
   
   related: #75795
   related: #75765
   
   ---
   
   ##### Was generative AI tooling used to co-author this PR?
   
   - [X] Yes — Claude Code (Opus 5)
   
   Generated-by: Claude Code (Opus 5) 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