Reputation: 1
I looked into this post to grab multiple messages at once in a single webjob execution (to accumulate the results of multiple messages). However this api: Microsoft.Azure.WebJobs.Extensions.GroupQueueTrigger does not provide documentation about, what happens when we fail to process one of the message from the batch downloaded, does it try the whole batch again? or it just moves failed message to poison queue? Does anyone know about this?
Upvotes: 0
Views: 282
Reputation: 33
Like Azure Functions, Azure App Service WebJobs with the WebJobs SDK is a code-first integration service that is designed for developers.
Azure Functions is built on the WebJobs SDK, so it shares many of the same event triggers and connections to other Azure services.
When a queue trigger function fails, Azure Functions retries the function up to five times for a given queue message, including the first try. If all five attempts fail, the functions runtime adds a message to a queue named -poison. You can write a function to process messages from the poison queue by logging them or sending a notification that manual attention is needed.
The retry policy executes its child policies once and then retries their execution until the retry condition becomes false or retry count is exhausted.
References: https://learn.microsoft.com/en-us/azure/api-management/api-management-advanced-policies#Retry
Upvotes: 1