Daniel Alonso
Daniel Alonso

Reputation: 60

Reset message visibility Azure Storage Queue

I have an azure storage Queue with many messages, that were checked out (getQueueMessages) with a very long visibility timeout (>72hrs, setVisibilityTimeoutInSeconds). The dequeue process crashed, leaving of millions of messages stuck in the queue, we have to wait now a long time until they expire and become visible in the queue again.

Is there a way to reset the visibility timeout for all messages in the queue, that is, to make all invisible messages visible again, without having the pop receipt/id for each message?

Upvotes: 1

Views: 2440

Answers (1)

Gaurav Mantri
Gaurav Mantri

Reputation: 136196

Unfortunately no. Once the messages are dequeued they are not visible to any other callers. If you have message contents, you could just clear the queue and then put these messages again.

Upvotes: 2

Related Questions