Conditions | 1 |
Paths | 1 |
Total Lines | 7 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
36 | protected function worker() |
||
37 | { |
||
38 | $queueManager = Yii::$app->jobqueue->getQueueManager(); |
||
39 | |||
40 | $worker = new Worker($queueManager, new MongoFailedJobProvider(Yii::$app->mongodb, 'yii_jobs_failed'), new ExceptionHandler()); |
||
41 | $worker->daemon($this->connection, $this->queue, new WorkerOptions($this->delay, $this->memory, $this->timeout, $this->sleep, $this->maxTries)); |
||
42 | } |
||
43 | } |
||
44 |