0

Message is stuck on azure service bus for last 24 hours. It is not getting delivered to Listener. Active message: 2 message time to live : 14 days Message lock duration: 5 minutes max delivery count:1 (we have reduced it to 1 as 5 minutes is not enough to finish processing) Is there any way we can re trigger these messages to the listener?

1 Answers1

0

In your listener, please make sure you need to recheck once the active and deadletter queue.

If you are using Recieve();/ RecieveBatch();/ onMessage(); in your listener it will receive the queues messages not to get the stuck or not processed messages, for that you have to use the Complete() or abandon().

complete():

Complete() is used for any message you have to process.

abandon()

The abandon() is immediately available in the queue for another worker to process. And check the BrokeredMessage.Abandon()

DeliveryCount

The DeliveryCount property is used to not process a message twice.

Refer here

Message lock duration: 5 minutes max delivery count:1 (we have reduced it to 1 as 5 minutes is not enough to finish processing) Is there any way we can re-trigger these messages to the listener?

The Maximum delivery count is our flexibility only we can Gets or sets the maximum delivery count. A message is automatically deadlettered after this number of deliveries.

The Lock Duration (Seconds) has some limitations like we can Gets or sets the duration of a peek lock. The maximum value for LockDuration is 5 minutes(default is 1 minute).

Please refer here for more information

Delliganesh Sevanesan
  • 4,146
  • 1
  • 5
  • 15