Skip to content

Commit 88b96a6

Browse files
committed
Updated QueueController to follow yii2-queue API changes
1 parent 843800f commit 88b96a6

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
"hiqdev/yii2-hiart-guzzle": "<2.0 || dev-master",
5454
"hiqdev/yii2-hiart-librariesio": "<2.0 || dev-master",
5555
"guzzlehttp/guzzle": "^6.0",
56-
"yiisoft/yii2-queue": "^2.0"
56+
"yiisoft/yii2-queue": "^2.0.2"
5757
},
5858
"require-dev": {
5959
"yiisoft/yii2-debug": "^2.0",

src/console/QueueController.php

+1-2
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ public function init()
5757
*/
5858
public function actionRun()
5959
{
60-
$this->queue->run();
60+
$this->queue->run(true);
6161
}
6262

6363
/**
@@ -69,7 +69,6 @@ public function actionTestErrorHandler()
6969
sleep(1);
7070
}
7171

72-
7372
private function ensureLimits()
7473
{
7574
if (++$this->executedJobsCount >= static::MAX_EXECUTED_JOBS && function_exists('posix_kill')) {

0 commit comments

Comments
 (0)