From a6befe762c4002265dc7b5b0332a7ca4bf97f38c Mon Sep 17 00:00:00 2001 From: brandonkelly Date: Fri, 22 Jun 2018 09:39:57 -0700 Subject: [PATCH] Call maxPowerCaptain() for web-based queue workers (#3011) --- CHANGELOG-v3.md | 1 + src/controllers/QueueController.php | 2 ++ 2 files changed, 3 insertions(+) diff --git a/CHANGELOG-v3.md b/CHANGELOG-v3.md index ca933519d7d..1a8a6b23b08 100644 --- a/CHANGELOG-v3.md +++ b/CHANGELOG-v3.md @@ -11,6 +11,7 @@ ### Changed - Editable tables now submit an empty string when they have no rows. - Reduced the overhead when adding a new site by only resaving existing assets, categories, global sets, and tags once for the newly-created site, rather than for all sites. +- Web-based queue workers now call `craft\helpers\App::maxPowerCaptain()` before running the queue. ([#3011](https://github.com/craftcms/cms/issues/3011)) ### Fixed - Fixed a bug where sidebar meta info on Edit User pages was bleeding over the edge of the page’s content area. diff --git a/src/controllers/QueueController.php b/src/controllers/QueueController.php index 4fc7b7fdf29..5ebf67b739b 100644 --- a/src/controllers/QueueController.php +++ b/src/controllers/QueueController.php @@ -8,6 +8,7 @@ namespace craft\controllers; use Craft; +use craft\helpers\App; use craft\queue\QueueInterface; use craft\web\Controller; use yii\web\BadRequestHttpException; @@ -81,6 +82,7 @@ public function actionRun(): Response } // Run the queue + App::maxPowerCaptain(); $queue->run(); return $response;