Sahil Deliwala
Sahil Deliwala

Reputation: 842

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?

Upvotes: 5

Views: 5858

Answers (1)

Sahil Deliwala
Sahil Deliwala

Reputation: 842

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

Upvotes: 7

Related Questions