Conditions | 3 |
Paths | 3 |
Total Lines | 13 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
31 | protected function execute(InputInterface $input, OutputInterface $output) |
||
32 | { |
||
33 | $resque = $this->getContainer()->get('resque'); |
||
34 | |||
35 | if ($resque instanceof Resque) { |
||
36 | $workers = $resque->getWorkers(); |
||
37 | |||
38 | foreach ($workers as $worker) { |
||
39 | $output->writeln(sprintf('Unregistered Worker: %s', $worker->getId())); |
||
40 | $worker->getWorker()->unregisterWorker(); |
||
41 | } |
||
42 | } |
||
43 | } |
||
44 | } |
||
45 |