Skip to content

fix: listen to queued asynchronous actions at boot - #478

Merged
ogorzalka merged 1 commit into
release/v13.36.0from
fix/async-listen-at-boot
Oct 14, 2026
Merged

ogorzalka merged 1 commit into
release/v13.36.0from
fix/async-listen-at-boot

Conversation

@ogorzalka

Copy link
Copy Markdown
Member

A queued async action was only run if the request running it had built an Action (Async::listen() was called from the Action adapter). A handler registered only in the dispatching request was never run; Action Scheduler marked the job failed with "no callbacks are registered". The provider now calls Async::listen() at boot.

Same code as v13.35.6, found while testing pollora-test on the release. Verified live: with the handler registered only at dispatch, via('wp-cron') and via('action-scheduler') both run once. No unit test: the framework suite defines no WordPress functions, so add_action/has_action cannot be asserted there.

@ogorzalka
ogorzalka merged commit 8ca4bdf into release/v13.36.0 Oct 14, 2026
10 checks passed
@ogorzalka
ogorzalka deleted the fix/async-listen-at-boot branch October 14, 2026 13:36
@ogorzalka ogorzalka mentioned this pull request Oct 14, 2026
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.

1 participant