Keep triggerer alive when deferred tasks disappear#69842
Open
idan192 wants to merge 2 commits into
Open
Conversation
A stale task reference in a pinned serialized Dag can otherwise abort workload construction for every trigger in the supervisor batch and cause repeated triggerer restarts.
|
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
|
Release notes should make the restored triggerer behavior visible to operators evaluating a 3.3 patch release.
1 task
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A stale deferred task can raise
TaskNotFoundwhile 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 backportable; please cherry-pick it to
v3-3-testfor the next 3.3.x release.Validation
Bad file descriptor; the Linux Core/Other matrix remains delegated to CI.related: #69841
Was generative AI tooling used to co-author this PR?
Generated-by: Codex (GPT-5) following the guidelines