Skip to content

Keep callback triggers assigned to healthy triggerers - #72848

Merged
hussein-awala merged 2 commits into
apache:mainfrom
hussein-awala:codex/preserve-callback-trigger-ownership
Oct 5, 2026
Merged

hussein-awala merged 2 commits into
apache:mainfrom
hussein-awala:codex/preserve-callback-trigger-ownership

Conversation

@hussein-awala

@hussein-awala hussein-awala commented Sep 9, 2026 •

Copy link
Copy Markdown
Member

Callback triggers could be claimed by another healthy triggerer because their assignment query omitted the live-owner filter used for task and asset triggers. Repeated claims could duplicate callback execution and use selection capacity needed by waiting triggers.

Apply the same unassigned-or-unhealthy-owner filter to callbacks. Regression coverage verifies stable ownership across two healthy triggerers while unassigned callbacks and callbacks owned by stale or finished Jobs are claimed, for both default and named queues.

Validation:

  • Both new regression cases fail before the fix.
  • Trigger model suite: 46 passed on PostgreSQL 14 and 46 passed on MySQL 8 through Breeze/Python 3.10.
  • Triggerer suite: 112 passed with SQLite through Breeze/Python 3.10.
  • Regular and manual prek checks passed, including Ruff and airflow-core mypy.

Was generative AI tooling used to co-author this PR?
  • Yes — Codex (GPT-6)

Generated-by: Codex (GPT-6) following the guidelines

Callback triggers could be repeatedly claimed by another healthy triggerer, causing duplicate callback execution and consuming capacity intended for waiting triggers.
@hussein-awala hussein-awala added ready for maintainer review Set by triage when all criteria pass, or by the fork CI reconciler when fork CI is green. type:bug-fix Changelog: Bug Fixes labels Sep 9, 2026
@hussein-awala hussein-awala added this to the Airflow 3.3.2 milestone Sep 9, 2026
@vatsrahul1001

Copy link
Copy Markdown
Contributor

LGTM! can merge post code owner review

@potiuk potiuk left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good !

@hussein-awala
hussein-awala merged commit 94a677e into apache:main Oct 5, 2026
79 checks passed
@github-actions

github-actions Bot commented Oct 5, 2026

Copy link
Copy Markdown
Contributor

Backport successfully created: v3-3-test

Note: As of Merging PRs targeted for Airflow 3.X
the committer who merges the PR is responsible for backporting the PRs that are bug fixes (generally speaking) to the maintenance branches.

In matter of doubt please ask in #release-management Slack channel.

Status Branch Result
✅ v3-3-test PR Link

aws-airflow-bot pushed a commit to aws-mwaa/upstream-to-airflow that referenced this pull request Oct 5, 2026
…ache#72848)

Callback triggers could be repeatedly claimed by another healthy triggerer, causing duplicate callback execution and consuming capacity intended for waiting triggers.
(cherry picked from commit 94a677e)

Co-authored-by: Hussein Awala <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:Triggerer ready for maintainer review Set by triage when all criteria pass, or by the fork CI reconciler when fork CI is green. type:bug-fix Changelog: Bug Fixes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants