Hi,
I did setup my host.json like this:
"extensions": {
"queues": {
"maxDequeueCount": 1,
"batchSize": 1,
"newBatchThreshold": 0,
"visibilityTimeout": "00:00:30"
}
}
So that my functions would always get one message at a time, we have a constraint where our queues are dynamically created on demande and we need to only dequeue one message at a time in each queue, but we can process multiple queues in parallel.
Also my setartup is made so I add a static access to IConfiguration for the run.csx like this:
[assembly: FunctionsStartup(typeof(AzureFunctionsIntegrations.Startup))]
namespace AzureFunctionsIntegrations
{
public class Startup : FunctionsStartup
{
public override void Configure(IFunctionsHostBuilder builder)
{
ReusableRunner.Configuration = builder.Services.BuildServiceProvider().GetService<IConfiguration>();
}
}
}
Now I see that the host.json is loaded correctly in the logs for the queue settings, but still my csx function is processing multiple messages in parallel.
If any of you have an idea, i'll be grateful !
Thanks.