Conditions | 1 |
Paths | 1 |
Total Lines | 7 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
24 | public function actionWork() |
||
25 | { |
||
26 | $queueManager = Yii::$app->jobqueue->getQueueManager(); |
||
27 | |||
28 | $worker = new Worker($queueManager, new MongoFailedJobProvider(Yii::$app->mongodb, 'yii_jobs_failed'), new ExceptionHandler()); |
||
29 | $worker->daemon($this->connection, $this->queue, new WorkerOptions($this->delay, $this->memory, $this->timeout, $this->sleep, $this->maxTries)); |
||
30 | } |
||
31 | |||
37 |