I have these commands scheduled in my Kernel.php inside app/Console/
protected function schedule(Schedule $schedule)
{
$schedule->command('inspire')->everyMinute();
$schedule->command("trustpilot:send")->everyMinute();
$schedule->command("run:status")->everyFiveMinutes();
}
When i run php artisan schedule:run i get this message :
No scheduled commands are ready to run.
It is strange because if i'm dumping $schedule->dueEvents($this->app) i get a list with the events inspire and trustpilot:send.
I've tried to dump the list of dueEvents in /vendor/laravel/framework/src/Illuminate/Console/Scheduling/ScheduleRunCommand.php but here the list is empty??
/**
* Execute the console command.
*
* @return void
*/
public function handle()
{
dd($this->schedule->dueEvents($this->laravel)); <---- EMPTY?
foreach ($this->schedule->dueEvents($this->laravel) as $event) {
if (! $event->filtersPass($this->laravel)) {
continue;
}
.....
Has anyone experienced this before?
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire