1
votes

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?

1
Are you using the Java API? I'm guessing so by the method names.Paul Turner
yes, I am using the Java API and I couldnt find any method, I was hoping there was a reset button, or maybe some HTTP call using the REST apiDaniel Alonso

1 Answers

2
votes

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.