At the moment, there is quite a lot of complexity in the code coming from additional support for queue items which are not associated with a defined queue. We have to merge the information we have from defined queues and the queue names that are used for items.

In Drupal 7, queues were defined with hook_queue_info(), but in D8 we have formal QueueWorker plugins. The only common usage of undefined queues is from the batch system.

With undefined queues we can't do much except viewing the data, deleting items or renewing their lease. Since we don't have an action for each item, we can't process those on cron or with a batch process. Undefined queues are also fully based on the database backend.

My proposal would be to drop support for undefined queues. This would simplify the code quite a bit, and will make it easier to support non-database queues.

Comments

floretan created an issue. See original summary.

floretan’s picture

Category: Plan » Task
Status: Active » Needs review
StatusFileSize
new11.1 KB

After taking a closer look at past issues and also upcoming changes, it seems clear that this change would be very beneficial.

Here's a patch that drops the logic to load queue definitions from whatever is defined in the database and merge it with what is defined by plugins. This removes a lot of unnecessary helper functions, it's a step towards being able to support non-database backed queues in a more generic way.

  • floretan committed d0f3300 on 8.x-2.x
    Issue #2594551 by floretan: Drop support for undefined queues
    
floretan’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

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