Sarah
Sarah

Reputation: 1303

Azure functions: queue configurations

I have an Azure queue, and I am noticing that lots of messages come out all together. Is there a way that I can de-queue the messages maybe one at a time?

Also, how can I set the queue to process the items that go in the poison queue only two times rather than five times, which seems to the default right now.

Everywhere that I check, it talks about updating the function.json file which I don't even see in my Visual Studio instance. It seems like it gets configured at run time based on my settings in local.settings.json.

I have been updating only my local.settings.json file. My host.json only has version:2.0 in it.

Where can I change the configurations of my Azure queue?

Upvotes: 0

Views: 639

Answers (1)

Joey Cai
Joey Cai

Reputation: 20127

Where can I change the configurations of my azure queue?

As the new case said, you could set the following configuration in host.json.

{
    "version": "2.0",
    "extensions": {
        "queues": {
            "maxPollingInterval": "00:00:02",
            "batchSize": 1,
            "maxDequeueCount": 2
        }
    }
}

For more details, you could refer to this article.

Upvotes: 1

Related Questions