Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions schedule-events.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down