mardi 8 mai 2018

Laravel “No scheduled commands are ready to run.” [duplicate]

This question already has an answer here:

I have an issue making Laravel's (5.4) Scheduling work.

I have a cron script:

* * * * * php /path/artisan schedule:run >> /path/cron.log

the output of the cron.log:

~/apps/staging/storage/logs$ tail -100 cron.log
No scheduled commands are ready to run.
No scheduled commands are ready to run.
No scheduled commands are ready to run.
No scheduled commands are ready to run.
No scheduled commands are ready to run.
...

My app/Http/Kernel.php file contains:

protected function schedule(Schedule $schedule) {
        $schedule->command('queue:listen database')->everyFiveMinutes()->appendOutputTo(storage_path().'/storage/logs/job-schedule.log');
}

Also this didn't do the trick:

 protected function schedule(Schedule $schedule){
        $schedule->command('queue:listen database --tries=3')->cron('* * * * * *')->appendOutputTo('/storage/logs/schedule.log');
}

Anyone an idea?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire