Hi @Jona
Based on the provided host.json file, the maxDequeueCount
is set to 1, which means that the function should be retried only once before being sent to the poison queue.
However, it seems that the function is being retried five times before being sent to the poison queue. One possible reason for this behavior is that the function is failing with a transient error, which is causing the function to be retried multiple times. To confirm this, you can check the logs for the function execution and see if there are any errors being logged.
If the function is failing with a transient error, you can try increasing the clientRetryOptions
maximumRetries
property to a higher value to allow for more retries before sending the message to the poison queue. If the function is not failing with a transient error, then there might be an issue with the host.json
file. In this case, you can try removing the host.json
file and letting Azure Functions use the default settings to see if the issue persists
I hope that this response has addressed your query and helped you overcome your challenges. If so, please mark this response as Answered. This will not only acknowledge our efforts, but also assist other community members who may be looking for similar solutions.