Expose queue name of QueueInterface implenetation for outer usage

Created on 17 October 2015, over 8 years ago
Updated 15 December 2023, 7 months ago

I faced problem during the process of creation of custom modules related to queues, that it's impossible to get the name of QueueInterface implementations.
It's a bit weird because Queue factory depends from name (see docs).

From design point of view, $name is not a detail of inner implementation (like in DatabaseQueue), it's identifier or subtype of instance.

Actually i see 3 options:

  1. Add constuctor with name argument to QueueInterface (i'm realize it's pretty dangerous for existed implementatios)
  2. Add getter method to QueueInterface (still dangerous)
  3. Make the $name property public and force 'client' classes to be responsible to check if it's available for certain QueueInterface implementation (most safe way)

I think it's great option to expose $name to make possible comprehesive managing of Queue objects, like in QueueUI β†’ project.

✨ Feature request
Status

Closed: outdated

Version

11.0 πŸ”₯

Component
OtherΒ  β†’

Last updated about 9 hours ago

Created by

πŸ‡·πŸ‡ΊRussia IRuslan

Live updates comments and jobs are added and updated live.
  • Needs backport to D7

    After being applied to the 8.x branch, it should be considered for backport to the 7.x branch. Note: This tag should generally remain even after the backport has been written, approved, and committed.

  • Needs subsystem maintainer review

    It is used to alert the maintainer(s) of a particular core subsystem that an issue significantly impacts their subsystem, and their signoff is needed (see the governance policy draft for more information). Also, if you use this tag, make sure the issue component is set to the correct subsystem. If an issue significantly impacts more than one subsystem, use needs framework manager review instead.

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.69.0 2024