Queue not found after createitem

Created on 9 August 2022, over 2 years ago
Updated 13 February 2023, about 2 years ago

Problem/Motivation

Queue not found after creating items

Drupal core: 9.4.5
PHP-versie: 8.1.8
10.3.34-MariaDB

Via Ultimate cron we create items in a queue.

... get $listresult via API request ...
$queue_factory = \Drupal::service('queue');
$queue = $queue_factory->get('custommodulequeue');
foreach ($listResult as $item) {
   $queue->createItem($item);
}

The items are created in the table 'queue':

"item_id","name","data","expire","created"
"226","custommodulequeue","[BLOB]","0","1659970019"

Via Queue UI or "drush queue:list": the queue is not visible.

Via cron the queue worker is not executed.

Via "drush queue:run custommodulequeue" we get:
[error] Queue not found: custommodulequeue

💬 Support request
Status

Closed: outdated

Version

9.5

Component
Cron 

Last updated 22 days ago

No maintainer
Created by

🇧🇪Belgium adiatis Belgium

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024