Permalink
Browse files

fixes #50 - Laravel 5.6.24 renamed function (#52)

This fixes #50. The function allowServerToRun in the scheduler was renamed so this fails en no crons for one server are called. The code in the command was refactored in laravel/framework@6563ba6#diff-0de50829a544cd21193aef291b5a9baf so the new created function could be used here too.
  • Loading branch information...
glamorous authored and laurencei committed Jun 11, 2018
1 parent af5f44e commit dc10cd3655298351abbf61159bae49062793b6c9
Showing with 1 addition and 5 deletions.
  1. +1 −5 app/Commands/Framework/ScheduleRunCommand.php
@@ -47,11 +47,7 @@ protected function runScheduledEvents()
}
if ($event->onOneServer) {
if ($this->schedule->allowServerToRun($event, $this->startedAt)) {
$this->runEvent($event);
} else {
$this->line('<info>Skipping command (already run on another server):</info> '.$event->getSummaryForDisplay());
}
$this->runSingleServerEvent($event);
} else {
$this->runEvent($event);
}

0 comments on commit dc10cd3

Please sign in to comment.