private function isExecutable($interimName)
{
if ($this->param['run'] && $this->param['event'] === $interimName) {
return true;
} elseif (!$this->app['dispatcher']->hasListeners($interimName)) {
return false;
}
$nextRun = $this->jobs[$interimName]['nextRunTime'];
if ($interimName === CronEvents::CRON_HOURLY && $this->runtime >= $nextRun) {
return true;
} elseif ($this->runtime > $this->cronHour && $this->runtime >= $nextRun) {
// Only run non-hourly event jobs if we've passed our cron hour today
return true;
}
return false;
}