public function poll()
    {
        $this->checkForNewSchedulers();

        foreach ($this->getMissedSchedules() as $scheduler) {
            $this->notifyIfChanges($scheduler);
            $this->setNextSchedule($scheduler);
        }

        foreach ($this->getOverdueNoExitSchedules() as $history) {
            $history->output = "No finish ping received by Eyewitness";
            $history->exitcode = 1;
            $history->save();

            if ($history->scheduler->alert_on_fail || ($history->scheduler->alert_run_time_greater_than > 0)) {
                $this->eye->notifier()->alert(new Overdue(['scheduler' => $history->scheduler]));
            }
        }

        foreach ($this->getConditionalSchedules() as $scheduler) {
            if ($this->hasNotRunInGivenTimeframe($scheduler)) {
                $this->notifyIfChanges($scheduler);
            }
        }
    }
public function poll()
    {
        $this->checkForNewSchedulers();

        foreach ($this->getMissedSchedules() as $scheduler) {
            $this->notifyIfChanges($scheduler);
            $this->setNextSchedule($scheduler);
        }

        foreach ($this->getOverdueNoExitSchedules() as $history) {
            $history->output = "No finish ping received by Eyewitness";
            $history->exitcode = 1;
            $history->save();

            if ($history->scheduler->alert_on_fail || ($history->scheduler->alert_run_time_greater_than > 0)) {
                $this->eye->notifier()->alert(new Overdue(['scheduler' => $history->scheduler]));
            }
        }

        foreach ($this->getConditionalSchedules() as $scheduler) {
            if ($this->hasNotRunInGivenTimeframe($scheduler)) {
                $this->notifyIfChanges($scheduler);
            }
        }
    }
public function poll ( ) { $ this -> checkForNewSchedulers ( ) ; foreach ( $ this -> getMissedSchedules ( ) as $ scheduler ) { $ this -> notifyIfChanges ( $ scheduler ) ; $ this -> setNextSchedule ( $ scheduler ) ; } foreach ( $ this -> getOverdueNoExitSchedules ( ) as $ history ) { $ history -> output = "No finish ping received by Eyewitness" ; $ history -> exitcode = 1 ; $ history -> save ( ) ; if ( $ history -> scheduler -> alert_on_fail || ( $ history -> scheduler -> alert_run_time_greater_than > 0 ) ) { $ this -> eye -> notifier ( ) -> alert ( new Overdue ( [ 'scheduler' => $ history -> scheduler ] ) ) ; } } foreach ( $ this -> getConditionalSchedules ( ) as $ scheduler ) { if ( $ this -> hasNotRunInGivenTimeframe ( $ scheduler ) ) { $ this -> notifyIfChanges ( $ scheduler ) ; } } }
Poll the scheduler for its checks.

@return void
Poll the scheduler for its checks .