0
votes

We are using azure web job for processing the messages in azure storage queue. After the 5 unsuccessful attempts messages are moved to the Poisson queue. Instead of that i want to process the message further more until the message have been processed successfully.

kindly assist me on the same.

1

1 Answers

0
votes

You can configure the maximum number of retries (default is 5) before a message is sent to the poison queue. You can add an 'int dequeCount' parameter to your method to check the number of times it has been called and base your decisions on that.

Having said that you should definitely have some error handling strategy in place. Just trying indefinitely till you succeed is a recipe for failure.