I created function app v1 with one function in it. The function is a service bus trigger.
After publishing it to Azure i see this strange behaviour. Sometimes the function gets triggered and sometimes it's not. There are no errors in logs at that time, but i see messages were put into dead letter queue with "delivery count excided" error.
Now, if i try to resend failed messages - it fails again. But if i go to portal, refresh function app and send the messages again - they get picked up and processed as usual.
Here's how i send messages:
var client = new QueueClient(connectionString, queueName);
var bytes = Encoding.UTF8.GetBytes(msgStr);
var message = new Message(bytes);
await queueClient.SendAsync(message);
- I don't see this issue when run function locally.
- New messages (<5) arrive every 15-20 minutes
- I'm using Consumption plan
- host.json is empty
Please help.