Conditions | 3 |
Paths | 2 |
Total Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
38 | public function run($request) |
||
39 | { |
||
40 | $queue = $request->requestVar('queue') ?: QueuedJob::QUEUED; |
||
41 | |||
42 | $stalledJobCount = $this->getService()->checkJobHealth($queue); |
||
43 | |||
44 | echo $stalledJobCount === 0 ? 'All jobs are healthy' : 'Detected and attempted restart on ' . $stalledJobCount . |
||
45 | ' stalled jobs'; |
||
46 | } |
||
47 | |||
53 |