Skip to content

Commit

Permalink
Call maxPowerCaptain() for web-based queue workers (#3011)
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonkelly committed Jun 22, 2018
1 parent 549d5c4 commit a6befe7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG-v3.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 2 additions & 0 deletions src/controllers/QueueController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -81,6 +82,7 @@ public function actionRun(): Response
}

// Run the queue
App::maxPowerCaptain();
$queue->run();

return $response;
Expand Down

0 comments on commit a6befe7

Please sign in to comment.