Queue::createItem() does not return a unique id that will match claimItem()

Created on 16 October 2022, about 2 years ago
Updated 20 January 2023, almost 2 years ago

Problem/Motivation

QueueInterface::createItem() specifies

   * @return
   *   A unique ID if the item was successfully created and was (best effort)
   *   added to the queue, otherwise FALSE. We don't guarantee the item was
   *   committed to disk etc, but as far as we know, the item is now in the
   *   queue.

We currently only return TRUE or FALSE.

To my knowledge at the moment there is no way as part of the submit process to get an actual ID back (such a process would significantly slow RabbitMQ ingest rates and is likely why it has not be implemented)

We could create a UUID as part of the process and submit this as a message_id header to RabbitMQ which would allow us to return a value, .

Steps to reproduce

Proposed resolution

TBD

Remaining tasks

TBD

User interface changes

None anticipated.

API changes

None anticipated.

Data model changes

TBD

πŸ› Bug report
Status

Fixed

Version

3.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States cmlara

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.

No activities found.

Production build 0.71.5 2024