Fix schedules running twice, closes #1288
This commit is contained in:
parent
413a22a3d5
commit
5bd3f59455
6 changed files with 18 additions and 72 deletions
|
@ -75,6 +75,7 @@ class ScheduleRepository extends EloquentRepository implements ScheduleRepositor
|
|||
{
|
||||
return $this->getBuilder()->with('tasks')
|
||||
->where('is_active', true)
|
||||
->where('is_processing', false)
|
||||
->where('next_run_at', '<=', $timestamp)
|
||||
->get($this->getColumns());
|
||||
}
|
||||
|
|
Reference in a new issue