The below is the schedule function
protected function schedule(Schedule $schedule)
{
$schedule->command('queue:work')
->everyMinute()
->withoutOverlapping();
}
Below is the cron for laravel
* * * * * /usr/local/bin/php /home/space/public_html/project/artisan schedule:run >> /home/space/public_html/project/public/op.txt 2>&1
But each time the cron outputs
No scheduled commands are ready to run.
queue:work is not getting executed, what am I doing wrong?
Deleting all the schedule files in storage/framework did this job.
The problem was the command was executed but was some error so never worked but the command was active preventing it to run again by the cron (because i used withoutOverlapping() ).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With