private function executeSingle(CronEvent $event, $interimName, array $data)
    {
        if ($this->isExecutable($interimName)) {
            $this->notify($data['message']);
            /** @var Entity\Cron $cronEntity */
            $cronEntity = $this->jobs[$interimName]['entity'];

            try {
                $this->app['dispatcher']->dispatch($interimName, $event);
                $cronEntity->setLastrun($this->runtime);
                $this->repository->save($cronEntity);
            } catch (\Exception $e) {
                $this->handleError($e, $interimName);
            }
        }
    }
private function executeSingle(CronEvent $event, $interimName, array $data)
    {
        if ($this->isExecutable($interimName)) {
            $this->notify($data['message']);
            /** @var Entity\Cron $cronEntity */
            $cronEntity = $this->jobs[$interimName]['entity'];

            try {
                $this->app['dispatcher']->dispatch($interimName, $event);
                $cronEntity->setLastrun($this->runtime);
                $this->repository->save($cronEntity);
            } catch (\Exception $e) {
                $this->handleError($e, $interimName);
            }
        }
    }
private function executeSingle ( CronEvent $ event , $ interimName , array $ data ) { if ( $ this -> isExecutable ( $ interimName ) ) { $ this -> notify ( $ data [ 'message' ] ) ; /** @var Entity\Cron $cronEntity */ $ cronEntity = $ this -> jobs [ $ interimName ] [ 'entity' ] ; try { $ this -> app [ 'dispatcher' ] -> dispatch ( $ interimName , $ event ) ; $ cronEntity -> setLastrun ( $ this -> runtime ) ; $ this -> repository -> save ( $ cronEntity ) ; } catch ( \ Exception $ e ) { $ this -> handleError ( $ e , $ interimName ) ; } } }
Run a single cron dispatcher.

@param CronEvent $event
@param string    $interimName
@param array     $data
Run a single cron dispatcher .