Laravel “No scheduled commands are ready to run.”

后端 未结 13 1210
囚心锁ツ
囚心锁ツ 2020-12-09 08:39

I\'ve set up the following Laravel commands:

protected function schedule(Schedule $schedule) {
        $schedule->command(\'command:daily-reset\')->dai         


        
13条回答
  •  天命终不由人
    2020-12-09 08:47

    NB: This is not answer for this question, but a clue for anyone debugging with php artisan schedule:run manually. Hope it saves someone a few minutes of headache.

    Check if the scheduled task can run immediately. You can use the exec method for that.

     exec("php artisan your:command");
    }
    

    The reason for this is that, you might be scheduling the task to run at a certain time and if that time isn't due yet, it will output: "No scheduled commands are ready to run."

提交回复
热议问题