public function UltimateCronCrontabScheduler::isScheduled in Ultimate Cron 7.2
Schedule handler.
Overrides UltimateCronScheduler::isScheduled
File
- plugins/
ultimate_cron/ scheduler/ crontab.class.php, line 112 - Crontab cron job scheduler for Ultimate Cron.
Class
- UltimateCronCrontabScheduler
- Crontab scheduler.
Code
public function isScheduled($job) {
$settings = $job
->getSettings($this->type);
$log_entry = isset($job->log_entry) ? $job->log_entry : $job
->loadLatestLogEntry();
$skew = $this
->getSkew($job);
$class = get_class($this);
return $class::shouldRun($settings['rules'], $log_entry->start_time, NULL, $settings['catch_up'], $skew) !== FALSE ? TRUE : FALSE;
}