You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "vatsrahul1001 (via GitHub)" <gi...@apache.org> on 2026/06/01 13:09:17 UTC

[PR] [v3-2-test] Fix scheduler orphaned task reset logging crash (#67822) [airflow]

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: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [v3-2-test] Fix scheduler orphaned task reset logging crash (#67822) [airflow]

Posted by "vatsrahul1001 (via GitHub)" <gi...@apache.org>.
vatsrahul1001 merged PR #67844:
URL: https://github.com/apache/airflow/pull/67844


-- 
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: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org