idan192 opened a new pull request, #69842: URL: https://github.com/apache/airflow/pull/69842
A stale deferred task can raise `TaskNotFound` while the triggerer loads its pinned serialized Dag, aborting workload construction for unrelated triggers in the same supervisor batch. Catch only that task lookup failure, emit the trigger and task-instance identifiers as structured fields, and construct the ordinary context-free workload. Direct-to-triggerer tasks that still exist continue to receive Dag and DagRun context unchanged. The durable context-requirement persistence change is tracked in #69841. This PR is deliberately small and suitable for cherry-pick to `v3-3-test`. ### Validation - A missing task now produces a context-free workload and all structured identifiers are present. - A mixed stale/healthy batch constructs both workloads; the healthy direct-to-triggerer workload retains Dag and DagRun data. - Diff-scoped pre-commit and manual hooks pass, including mypy, ruff, security, and logging checks. - The full triggerer test module reached 42 passing tests locally before an existing macOS subprocess test exited with `Bad file descriptor`; the Linux Core/Other matrix remains delegated to CI. related: #69841 --- ##### Was generative AI tooling used to co-author this PR? - [X] Yes — Codex (GPT-5) Generated-by: Codex (GPT-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]
