Search code examples
azureazure-functionsazure-eventhub

Set polling interval on EventHub triggered Azure function


When using Storage Queue triggered functions, we could set polling interval with maxPollingInterval as in host.json [1]. But when using EventHub triggered functions, I cannot see any option to set the polling interval in hosts.json [2]. Question: Is there an option to set polling interval for EventHub triggered functions?

References: As per this comment [3] in Azure-Functions Github repostiory, scale controller polls on 10 second interval. As per this link [4], it appears logic apps has polling interval for polling from EventHubs.


Solution

  • Currently, there is no way to set the maxPollingInterval for Eventhub triggered azure function.

    From the source code of queue trigger, you can see it defines maxPollingInterval there, like below:

    public TimeSpan MaxPollingInterval{xxx}
    

    But for eventhub trigger, there is no such definition. You can submit a request there and ask them to add such feature.

    BTW, all available settings for eventhub triggered function are listed here.