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