Search code examples
phplaravelcronlaravel-5.3

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?


Solution

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