Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Control azure webjobs queue scan frequency

Azure webjobs invoked when new messages arrive to input queues (on storage or service bus). Is it possible to control frequency of queues scanning?

like image 303
Sean Feldman Avatar asked Dec 06 '25 08:12

Sean Feldman


1 Answers

You can use the MaxPollingInterval setting:

Gets or sets the longest period of time to wait before checking for a message to arrive when a queue remains empty.

Here's how you can set this up:

JobHostConfiguration configuration = new JobHostConfiguration();
configuration.Queues.MaxPollingInterval = TimeSpan.FromSeconds(30);

Note that this interval is only used to check form messages when the queue remains empty.

like image 196
Sandrino Di Mattia Avatar answered Dec 11 '25 11:12

Sandrino Di Mattia



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!