Conditions | 3 |
Paths | 3 |
Total Lines | 15 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
16 | public function runQueue($queue) |
||
17 | { |
||
18 | if (QueuedJobService::singleton()->isMaintenanceLockActive()) { |
||
19 | return; |
||
20 | } |
||
21 | |||
22 | $service = $this->getService(); |
||
23 | |||
24 | $nextJob = $service->getNextPendingJob($queue); |
||
25 | $this->logDescriptorStatus($nextJob, $queue); |
||
26 | |||
27 | if ($nextJob instanceof QueuedJobDescriptor) { |
||
28 | $service->processJobQueue($queue); |
||
29 | } |
||
30 | } |
||
31 | } |
||
32 |