Esempio n. 1
0
 /**
  * @inheritdoc
  */
 protected function execute(InputInterface $input, OutputInterface $output)
 {
     while ($jobData = $this->scheduler->retrieve()) {
         $output->writeln("Job {$jobData['id']} added.");
         $this->jobQueue->put($this->createJob($jobData));
         $this->scheduler->remove($jobData['id']);
     }
 }