Compatibility with multiple queues of a single module

Created on 25 February 2025, 3 months ago

Problem/Motivation

The queue functionnality seems to function well only if there is only one queue per module.

Steps to reproduce

Install ECA Module and create multiple distributed queue.

Then only one queue shows up, as the ID is always the same (name of the module) even though you may have multiple queues.

Proposed resolution

Change the way the array of the $definition variable is built (not with the ID).

Queue UI functions well so maybe we can see there how it's done properly.

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Active

Version

1.1

Component

Code

Created by

🇫🇷France eme

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

Comments & Activities

  • Issue created by @eme
  • 🇬🇧United Kingdom scott_euser

    Sure, happy to see something like this get in. Perhaps in Drupal\simple_cron\Plugin\SimpleCron\Queue::getTypeDefinitions() to avoid breaking change (haven't checked, but guessing there would be one), could check if the definition exists and if so append some sort of '_' . $count to it so e.g. `eca`, `eca_2`, `eca_3`...

Production build 0.71.5 2024