Repository navigation
feat: laravel scheduling driver, remove the Laravel scheduler bridge - #475
Merged
Merged
Conversation
The laravel driver queues each event as a job delayed until it is due; the cron option is its record. Removes use_laravel_scheduler, Scheduler, Events, Jobs\JobDispatcher, RegisterSchedulerFiltersUseCase and the wp_events table. Adds pollora:schedule:recover.
…e engine is created The driver is chosen while providers register, so it resolves the bus when a job is queued. Requires pollora/schedule ^0.1.3 (Identifies).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Step 5 of the schedule work.
Added: the
laraveldriver (POLLORA_SCHEDULE_DRIVER=laravel): each event is a job delayed until due in the application's queue, thecronoption is the record, a job runs only if its entry still carries its id and time. Recurring events queue their next occurrence after running or failing for good. Lost jobs are resent with the same id (pollora:schedule:recover, check at shutdown every 5 min). Delay ceiling chaining (SQS 900 s), per-site jobs on multisite, doctor reports late events / sync queue / final failures. Needspollora/schedule ^0.1.3.Removed (no alias):
use_laravel_scheduler,Scheduler,Events/*,Jobs/JobDispatcher,RegisterSchedulerFiltersUseCase, contracts, thewp_eventstable. Migration path in the CHANGELOG.Tested: 18 dedicated tests, suite 1856 pass (11 fail only for missing pdo_sqlite on the host), PHPStan, Rector, Pint; live on pollora-test with a database queue and a worker.