[ 'schedule' => $this->getScheduleStatus(), 'horizon' => $this->getHorizonStatus() ] ]); } public function getQueueStatus() { } protected function getScheduleStatus():bool { return (time() - 120) < Cache::get(CacheKey::get('SCHEDULE_LAST_CHECK_AT', null)); } protected function getHorizonStatus():bool { if (! $masters = app(MasterSupervisorRepository::class)->all()) { return false; } return collect($masters)->contains(function ($master) { return $master->status === 'paused'; }) ? false : true; } }