Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Laravel 5.3 Schedule Not working ( No scheduled commands are ready to run. )

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?

like image 669
Sahil Deliwala Avatar asked Oct 01 '16 06:10

Sahil Deliwala


1 Answers

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() ).

like image 173
Sahil Deliwala Avatar answered Sep 19 '22 06:09

Sahil Deliwala