Bolt\Cron::isExecutable PHP Метод

isExecutable() приватный Метод

Test whether or not to call dispatcher.
private isExecutable ( string $interimName ) : boolean
$interimName string The cron event name
Результат boolean Dispatch event or not
    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;
    }