Open YHAMSTM opened 1 year ago
@YHAMSTM thank you for submitting this issue! To clarify, you would like remove/delete a message from the queue by its sequence number? This operation isn't supported by the Azure Service Bus service today but I will forward this feedback to the service team for consideration.
Hi @jeremymeng Yes, exactly. I would like to have the ability to receive, complete or cancel a message by its sequence number. Since my current way to "cancel" is by receiving a batch of messages in queue (with peekLock), complete the message I want to cancel and abandon messages I want to let in queue. With this, raising "maxDeliveryCount" is mandatory...
@YHAMSTM the service team has planned features that may enable this scenario. But we don't have any ETA on when this will be available.
Great news!
Is your feature request related to a problem? Please describe. Hello, My current work using
Service Bus
is to provide a producer/consumer scheme by scheduling works for a set ofworkers
. When an user schedule a work, a message is directly published in a queue.Since workers can take some time to be available, an user can be frustated and may want to cancel its current work.
Describe the solution you'd like As currently available with
scheduledMessages
, I would like to have the same function ascancelScheduledMessages
for messages already available in queue.Currently it relies on "receiveMessages" and "abandonMessage", but it increases the number of "delivered". It should not on this use-case. Describe alternatives you've considered To do so, I would like to be able to
cancel()
, orcomplete()
a message by its sequenceNumber. Example:Additional context Add any other context or screenshots about the feature request here.