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.