コード例 #1
0
 protected function execute(InputInterface $input, OutputInterface $output)
 {
     $daemon = new Daemon($this->getContainer()->getParameter('jobqueue.daemon.options'));
     
     $daemon->reStart();
     
     while ($daemon->isRunning()) {
         $this->getContainer()->get('jobqueue.control')->run();
     }
     
     $daemon->stop();
 }