You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "idan192 (via GitHub)" <gi...@apache.org> on 2026/07/14 00:58:09 UTC
[PR] Keep triggerer alive when deferred tasks disappear [airflow]
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: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Keep triggerer alive when deferred tasks disappear [airflow]
Posted by "idan192 (via GitHub)" <gi...@apache.org>.
idan192 closed pull request #69842: Keep triggerer alive when deferred tasks disappear
URL: https://github.com/apache/airflow/pull/69842
--
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] Keep triggerer alive when deferred tasks disappear [airflow]
Posted by "boring-cyborg[bot] (via GitHub)" <gi...@apache.org>.
boring-cyborg[bot] commented on PR #69842:
URL: https://github.com/apache/airflow/pull/69842#issuecomment-4964350100
Congratulations on your first Pull Request and welcome to the Apache Airflow community! If you have any issues or are unsure about any anything please check our [Contributors' Guide](https://github.com/apache/airflow/blob/main/contributing-docs/README.rst)
Here are some useful points:
- Pay attention to the quality of your code (ruff, mypy and type annotations). Our [prek-hooks]( https://github.com/apache/airflow/blob/main/contributing-docs/08_static_code_checks.rst#prerequisites-for-prek-hooks) will help you with that.
- In case of a new feature add useful documentation (in docstrings or in `docs/` directory). Adding a new operator? Check this short [guide](https://github.com/apache/airflow/blob/main/airflow-core/docs/howto/custom-operator.rst) Consider adding an example Dag that shows how users should use it.
- Consider using [Breeze environment](https://github.com/apache/airflow/blob/main/dev/breeze/doc/README.rst) for testing locally, it's a heavy docker but it ships with a working Airflow and a lot of integrations.
- Be patient and persistent. It might take some time to get a review or get the final approval from Committers.
- Please follow [ASF Code of Conduct](https://www.apache.org/foundation/policies/conduct) for all communication including (but not limited to) comments on Pull Requests, Mailing list and Slack.
- Be sure to read the [Airflow Coding style]( https://github.com/apache/airflow/blob/main/contributing-docs/05_pull_requests.rst#coding-style-and-best-practices).
- Always keep your Pull Requests rebased, otherwise your build might fail due to changes not related to your commits.
Apache Airflow is a community-driven project and together we are making it better 🚀.
In case of doubts contact the developers at:
Mailing List: dev@airflow.apache.org
Slack: https://s.apache.org/airflow-slack
--
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