From 3a5220b5d5b44872f89bbda6679a42477a8fc561 Mon Sep 17 00:00:00 2001 From: Pollora maintainer Date: Thu, 3 Dec 2026 17:17:28 +0100 Subject: [PATCH] docs(schedule): failures when buffered events are handed to Action Scheduler --- schedule-events.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/schedule-events.md b/schedule-events.md index 3da972a..1e60d12 100644 --- a/schedule-events.md +++ b/schedule-events.md @@ -374,6 +374,8 @@ The driver is set in `config/schedule.php` (publish it with `php artisan vendor: A driver that is not available (Action Scheduler without a plugin that bundles it, a `sync` queue) leaves every event on WP-Cron, and `pollora:doctor` says so. Action Scheduler's own queue runner always stays on WP-Cron: handed to Action Scheduler, it would never run. +Action Scheduler can only store events once it has initialised, on `action_scheduler_init`: what is scheduled before is held in memory and handed over then. Since `pollora/schedule` 1.0.5, an event Action Scheduler refuses there (a recurrence WordPress does not know, for instance) no longer stops the ones after it: all are tried, then a single `ScheduleException` names the events that failed. + ### The `cron` option indexes every event Whatever the driver, the `cron` option lists every scheduled event, with a `driver` key on the entries another driver keeps. WordPress reads it without a query, so `wp_next_scheduled()`, Site Health, WP Crontrol and Query Monitor see the events, and WP-Cron never runs one it does not own. A plugin that rewrites the whole array still works: removing or moving an entry reaches the driver that keeps it.