| Conditions | 3 |
| Paths | 3 |
| Total Lines | 13 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 39 | public function jobqueueExecute($jobId) |
||
| 40 | { |
||
| 41 | $this->queuedJobService->checkJobHealth(); |
||
| 42 | $job = QueuedJobDescriptor::get()->byID($jobId); |
||
| 43 | if ($job) { |
||
| 44 | // check that we're not trying to execute something tooo soon |
||
| 45 | if (strtotime($job->StartAfter) > DBDatetime::now()->getTimestamp()) { |
||
| 46 | return; |
||
| 47 | } |
||
| 48 | |||
| 49 | $this->queuedJobService->runJob($jobId); |
||
| 50 | } |
||
| 51 | } |
||
| 52 | } |
||
| 54 |