Message Visibility Updates for Queue Triggered Azure Functions

Bradley Treuherz 20 Reputation points Microsoft Employee
2025-06-12T19:26:26.11+00:00

I have a simple question about how queue-triggered azure functions manage message visibility in the event that the function run for a long time.

I understand that with peek-lock, a queue-triggered function will temporarily make the message invisible to other consumers. If the function succeeds, the message is removed from the queue. If it fails (or if the host crashes) the message will be returned to the queue to be retried.

I can see that when a message is picked up by the queue triggered function, it has a visibility timeout of 10 minutes in the future. What will happen if the function instance runs for longer than 10 minutes? Is there a background process which updates the visibility timeout automatically, keeping the message invisible to other consumers as long as the process is healthy?

I could not find any documentation which explicitly mentioned this, but based on my experimentation it seems to be the case. Wanted to ask here and see if this behavior is confirmed.

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
5,911 questions
{count} votes

Accepted answer
  1. Praveen Kumar Gudipudi 1,875 Reputation points Microsoft External Staff Moderator
    2025-06-19T15:07:53.5733333+00:00

    Hello Bradley Treuherz,

    User's image

    If this answer was helpful, please click "Accept the answer" and mark Yes, as this can help other community members.

    User's image

    If you have any other questions or are still experiencing issues, feel free to ask in the "comments" section, and I'd be happy to help.

    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.