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

   Backport of #67822 to `v3-2-test`.
   
   The scheduler orphaned-task adoption path loaded task instances with a 
narrow `load_only(...)` set and then called `repr(ti)` while building the reset 
log message. `TaskInstance.__repr__` reads `map_index` and `state`, so detached 
instances with deferred columns could raise `DetachedInstanceError` and crash 
the scheduler on restart.
   
   This backport applies the original change as-is. The only cherry-pick 
conflict was an adjacent, unrelated test on `main` 
(`test_clear_task_instances_preserves_detail_level`, from a separate 
un-backported PR whose `get_task_span_detail_level` feature does not exist on 
`v3-2-test`); it was excluded, so the delta here is exactly #67822.
   
   related: #67813
   
   ---
   
   ##### Was generative AI tooling used to co-author this PR?
   
   - [X] Yes — Claude Code (Opus 4.8)
   
   Generated-by: Claude Code (Opus 4.8) 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