I have an an Azure Function which I want to fail and sent to the poison queue if it errors once or twice. I've set the maxDequeueCount property in my host.json file to 1, but it still retries 5 times. Based on all the doco I've read this seems to be correct. Does anyone have any suggestions? Below is a sample of my hosts.json.
{
"version": "2.0",
"logging": {
"fileLoggingMode": "debugOnly",
"logLevel": {
// For all functions
"Function": "Trace",
// Default settings, e.g. for host
"default": "Trace"
},
"extensions": {
"queues": {
"visibilityTimeout": "00:01:00",
"maxDequeueCount": 1
}
}
}
}