cron - Laravel scheduler says "No scheduled commands are ready to run." -


i've setup command this:

protected function schedule(schedule $schedule) {     $schedule->command('feeds:fetch')->everyfiveminutes(); } 

i've setup cron job run php artisan schedule:run

when run line on dev's terminal runs task ok. on prod returns "no scheduled commands ready run."

any way troubleshoot this?

the fine folks @ larachat (https://larachat.slack.com/) helped me out debug issue.

the problem crontab. setting crontab execute artisan scheduler follows:

*/1 * * * * php /path/to/artisan schedule:run 

(meaning execute every 1st minute of every hour every day.)

when should be:

* * * * * php /path/to/artisan schedule:run 

(meaning execute every minute of every hour every day.)

so, when manually ran cron on non-1st minute of every hour, didn't run @ all.


Comments

Popular posts from this blog

java - Could not locate OpenAL library -

c++ - Delete matches in OpenCV (Keypoints and descriptors) -

sorting - opencl Bitonic sort with 64 bits keys -