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

血红的双手。 提交于 2019-12-12 10:51:32

问题


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?


回答1:


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



来源:https://stackoverflow.com/questions/39803699/laravel-5-3-schedule-not-working-no-scheduled-commands-are-ready-to-run

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!