Queue::claimItem does not return property 'item_id'

Created on 16 October 2022, almost 2 years ago
Updated 18 January 2023, over 1 year ago

Problem/Motivation

QueueInterface::claimItem() specifies

   *   If returned, the object will have at least the following properties:
   *   - data: the same as what passed into createItem().
   *   - item_id: the unique ID returned from createItem().
   *   - created: timestamp when the item was put into the queue.
   */

We currently do not return an 'item_id' property.

Postponing on πŸ› Queue::createItem() does not return a unique id that will match claimItem() Fixed as that may end up being the fix for this issue going forward. We may need to have 'item_id' return the same as we currently return for 'id' to ensure we don't completely break callers in RabbitMQ 3.x.

Steps to reproduce

Obtain an item from Queue::claimItem() and inspect properties.

Proposed resolution

TBD

Remaining tasks

TBD

User interface changes

None expected.

API changes

TBD

Data model changes

TBD

πŸ› Bug report
Status

Closed: outdated

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