Support namespaced queue classes and queues not based on the `queue` table

Created on 18 February 2015, about 10 years ago
Updated 9 January 2025, 3 months ago

I needed to create a queue similar to SystemQueue that operates on a different table. The queue class has a full namespace \Drupal\my_module\Queue\SystemSetQueue.

Queue UI makes several assumptions that broke under those circumstances:

  • Assumes that prepending 'QueueUI' to a class name will be a valid class name. That is not true for namespaced class names.
  • Assumes that all queue names are listed in the queue table under the name column. That is not true for queues that don't operate using the database or use a different table.

The following patch will address these issue by making use of the existing (and not used) hook_queue_info. This will allow other modules to expose their queue names. It also includes some other minor misc issues I've been noticing.

Thanks for maintaining this module!

πŸ› Bug report
Status

Closed: outdated

Version

2.0

Component

Code

Created by

e0ipso Can Picafort

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