Skip to content

[v3-4-test] Validate CallbackTrigger callback path before running the callback (#74842) - #75102

Merged
potiuk merged 1 commit into
v3-4-testfrom
backport-57fb394-v3-4-test
Oct 19, 2026
Merged

potiuk merged 1 commit into
v3-4-testfrom
backport-57fb394-v3-4-test

Conversation

@github-actions

Copy link
Copy Markdown
Contributor
  • Validate CallbackTrigger callback path before running the callback

The callback path resolved by CallbackTrigger must now be a coroutine
function or an awaitable callable (such as an async notifier class),
matching what AsyncCallback accepts. Anything else fails the callback
before it is called, the same way trigger classpaths are validated.

Generated-by: Claude Opus 5 following the guidelines at https://github.com/apache/airflow/blob/main/contributing-docs/05_pull_requests.rst#gen-ai-assisted-contributions

  • Rename newsfragment to the PR number

Generated-by: Claude Opus 5 following the guidelines at https://github.com/apache/airflow/blob/main/contributing-docs/05_pull_requests.rst#gen-ai-assisted-contributions

  • Accept the same triggerer callbacks the Task SDK accepts

The triggerer also accepted callable objects with an async call, which AsyncCallback rejects when the callback is defined, so the two checks disagreed. Core cannot import the SDK check, so the triggerer now applies the same rule locally.
(cherry picked from commit 57fb394)

Co-authored-by: Jarek Potiuk [email protected]
Generated-by: Claude Opus 5

… callback (#74842)

* Validate CallbackTrigger callback path before running the callback

The callback path resolved by CallbackTrigger must now be a coroutine
function or an awaitable callable (such as an async notifier class),
matching what AsyncCallback accepts. Anything else fails the callback
before it is called, the same way trigger classpaths are validated.

Generated-by: Claude Opus 5 following the guidelines at https://github.com/apache/airflow/blob/main/contributing-docs/05_pull_requests.rst#gen-ai-assisted-contributions

* Rename newsfragment to the PR number

Generated-by: Claude Opus 5 following the guidelines at https://github.com/apache/airflow/blob/main/contributing-docs/05_pull_requests.rst#gen-ai-assisted-contributions

* Accept the same triggerer callbacks the Task SDK accepts

The triggerer also accepted callable objects with an async __call__, which AsyncCallback rejects when the callback is defined, so the two checks disagreed. Core cannot import the SDK check, so the triggerer now applies the same rule locally.
(cherry picked from commit 57fb394)

Co-authored-by: Jarek Potiuk <[email protected]>
Generated-by: Claude Opus 5
@potiuk
potiuk marked this pull request as ready for review October 19, 2026 16:27
@potiuk
potiuk merged commit 7a58718 into v3-4-test Oct 19, 2026
77 of 78 checks passed
@potiuk
potiuk deleted the backport-57fb394-v3-4-test branch October 19, 2026 16:27
@github-actions github-actions Bot added this to the Airflow 3.4.1 milestone Oct 19, 2026
@github-actions

Copy link
Copy Markdown
Contributor Author

Hi maintainer, this PR was merged without a milestone set.
We've automatically set the milestone to Airflow 3.4.1 based on: merged to version branch
If this milestone is not correct, please update it to the appropriate milestone.

This comment was generated by Milestone Tag Assistant.

vatsrahul1001 pushed a commit that referenced this pull request Oct 20, 2026
… callback (#74842) (#75102)

* Validate CallbackTrigger callback path before running the callback

The callback path resolved by CallbackTrigger must now be a coroutine
function or an awaitable callable (such as an async notifier class),
matching what AsyncCallback accepts. Anything else fails the callback
before it is called, the same way trigger classpaths are validated.

Generated-by: Claude Opus 5 following the guidelines at https://github.com/apache/airflow/blob/main/contributing-docs/05_pull_requests.rst#gen-ai-assisted-contributions

* Rename newsfragment to the PR number

Generated-by: Claude Opus 5 following the guidelines at https://github.com/apache/airflow/blob/main/contributing-docs/05_pull_requests.rst#gen-ai-assisted-contributions

* Accept the same triggerer callbacks the Task SDK accepts

The triggerer also accepted callable objects with an async __call__, which AsyncCallback rejects when the callback is defined, so the two checks disagreed. Core cannot import the SDK check, so the triggerer now applies the same rule locally.
(cherry picked from commit 57fb394)


Generated-by: Claude Opus 5

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants