Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
[5.4] allow scheduling of queued jobs #18235
As proposed in laravel/ideas#457, this simple addition allows us to schedule a job to be queued at a specific interval.
This enables you do have something like this
# /app/Console/Kernel.php $schedule->job(new Heartbeat())->everyFiveMinutes();
In this example, you might be scheduling a heartbeat to be run from the queue workers themselves. This is something I currently do in production which ping's Envoyer's heartbeat endpoints to tell me if a queue is backed up for too long.
Right now, if you want to do this you have to either create a dedicated command per job you want to schedule, or use the