Fix schedules running twice, closes #1288
This commit is contained in:
parent
413a22a3d5
commit
5bd3f59455
6 changed files with 18 additions and 72 deletions
|
@ -57,6 +57,11 @@ class ProcessRunnableCommand extends Command
|
|||
public function handle()
|
||||
{
|
||||
$schedules = $this->repository->getSchedulesToProcess(Chronos::now()->toAtomString());
|
||||
if ($schedules->count() < 1) {
|
||||
$this->line('There are no scheduled tasks for servers that need to be run.');
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
$bar = $this->output->createProgressBar(count($schedules));
|
||||
$schedules->each(function ($schedule) use ($bar) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue