public function runScheduled(OutputInterface $output)
    {
        $success = true;

        $event = new ScheduleRunBeginEvent();
        $this->dispatcher->dispatch($event::NAME, $event);

        foreach ($this->getScheduledJobs() as $jobInfo) {
            $job = $jobInfo['model'];
            $run = $this->runJob($job, $jobInfo, $output);

            $success = $run->succeeded() && $success;
        }

        $event = new ScheduleRunFinishedEvent();
        $this->dispatcher->dispatch($event::NAME, $event);

        return $success;
    }
public function runScheduled(OutputInterface $output)
    {
        $success = true;

        $event = new ScheduleRunBeginEvent();
        $this->dispatcher->dispatch($event::NAME, $event);

        foreach ($this->getScheduledJobs() as $jobInfo) {
            $job = $jobInfo['model'];
            $run = $this->runJob($job, $jobInfo, $output);

            $success = $run->succeeded() && $success;
        }

        $event = new ScheduleRunFinishedEvent();
        $this->dispatcher->dispatch($event::NAME, $event);

        return $success;
    }
public function runScheduled ( OutputInterface $ output ) { $ success = true ; $ event = new ScheduleRunBeginEvent ( ) ; $ this -> dispatcher -> dispatch ( $ event :: NAME , $ event ) ; foreach ( $ this -> getScheduledJobs ( ) as $ jobInfo ) { $ job = $ jobInfo [ 'model' ] ; $ run = $ this -> runJob ( $ job , $ jobInfo , $ output ) ; $ success = $ run -> succeeded ( ) && $ success ; } $ event = new ScheduleRunFinishedEvent ( ) ; $ this -> dispatcher -> dispatch ( $ event :: NAME , $ event ) ; return $ success ; }
Runs any scheduled tasks.

@param OutputInterface $output

@return bool true if all tasks ran successfully
Runs any scheduled tasks .