protected function execute(InputInterface $input, OutputInterface $output)
 {
     $daemon = new Daemon($this->getContainer()->getParameter('jobqueue.daemon.options'));
     $daemon->start();
     
     while ($daemon->isRunning()) {
         $this->getContainer()->get('jobqueue.control')->run();
     }
     
     $daemon->stop();
 }
 protected function execute(InputInterface $input, OutputInterface $output)
 {
     $daemon = new Daemon($this->getContainer()->getParameter('jobqueue.daemon.options'));
     $daemon->stop();
 }