@Sayed Reda Thanks for reaching out. In the isolated worker model, you can’t change the host configuration in code because your function runs in a separate process from the host. Instead, you need to configure settings like maxBatchSize
and prefetchCount
in the host.json
file.
This is mentioned here please refer: https://learn.microsoft.com/en-us/azure/azure-functions/dotnet-isolated-process-guide?tabs=linux#configuration
do let me know incase of further queries, I would be happy to assist you.