You are here

public function CronJob::isBehindSchedule in Ultimate Cron 8.2

Check if job is behind its schedule.

Return value

bool|int FALSE if job is behind its schedule or number of seconds behind.

Overrides CronJobInterface::isBehindSchedule

File

src/Entity/CronJob.php, line 376

Class

CronJob
Class for handling cron jobs.

Namespace

Drupal\ultimate_cron\Entity

Code

public function isBehindSchedule() {
  return $this
    ->getPlugin('scheduler')
    ->isBehind($this);
}