| Conditions | 1 |
| Paths | 1 |
| Total Lines | 9 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 8 |
| CRAP Score | 1 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 18 | 1 | protected function execute(InputInterface $input, OutputInterface $output) |
|
| 19 | { |
||
| 20 | 1 | $container = $this->getContainer(); |
|
| 21 | 1 | $jobManager = $container->get('dtc_queue.job_manager'); |
|
| 22 | 1 | $countError = $jobManager->resetErroneousJobs(); |
|
| 23 | 1 | $countStalled = $jobManager->resetStalledJobs(); |
|
| 24 | 1 | $output->writeln("$countError job(s) in status 'error' reset"); |
|
| 25 | 1 | $output->writeln("$countStalled job(s) in status 'running' reset"); |
|
| 26 | 1 | } |
|
| 27 | } |
||
| 28 |