| Conditions | 3 |
| Paths | 3 |
| Total Lines | 13 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 36 | public function jobqueueExecute($jobId) |
||
| 37 | { |
||
| 38 | $this->queuedJobService->checkJobHealth(); |
||
| 39 | $job = DataList::create('Symbiote\\QueuedJobs\\DataObjects\\QueuedJobDescriptor')->byID($jobId); |
||
| 40 | if ($job) { |
||
| 41 | // check that we're not trying to execute something tooo soon |
||
| 42 | if (strtotime($job->StartAfter) > time()) { |
||
| 43 | return; |
||
| 44 | } |
||
| 45 | |||
| 46 | $this->queuedJobService->runJob($jobId); |
||
| 47 | } |
||
| 48 | } |
||
| 49 | } |
||
| 51 |