Problem/Motivation

When running drush queue:list in Drupal 10/Drush 11/PHP 8.1.10, I get the following error and the command terminates abnormally.

TypeError: Drush\Drupal\Commands\core\QueueCommands::getWorkerManager(): Return value must be of type Drupal\Core\Queue\QueueWorkerManager, Drupal\queue_order\Queue\QueueWorkerManager returned in Drush\Drupal\Commands\core\QueueCommands->getWorkerManager() (line 35 of /app/vendor/drush/drush/src/Drupal/Commands/core/QueueCommands.php).

Steps to reproduce

  1. Run drush queue:list.
  2. See the error.
Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

jesss created an issue. See original summary.

voleger’s picture

Status: Active » Postponed
voleger’s picture

Status: Postponed » Needs work

Changes applied in drush project. Now we need to add incompatibility info

voleger’s picture

Title: TypeError: QueueWorkerManager » Provide Drush compatibility info
Status: Needs work » Needs review

  • voleger committed efe0b6bf on 2.1.x
    Issue #3329871 by voleger: Provide Drush compatibility info 
    
voleger’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

voleger’s picture

Drush published the release with a fix https://github.com/drush-ops/drush/releases/tag/11.5.0