Share via


EventHubOptions.MaxWaitTime Property

Definition

Gets or sets the maximum time that the trigger should wait to fill a batch before invoking the function. This is only considered when MinEventBatchSize is set to larger than 1 and is otherwise unused. If less than MinEventBatchSize events were available before the wait time elapses, the function will be invoked with a partial batch. Default is 60 seconds. The longest allowed wait time is 10 minutes.

public TimeSpan MaxWaitTime { get; set; }
member this.MaxWaitTime : TimeSpan with get, set
Public Property MaxWaitTime As TimeSpan

Property Value

Remarks

This interval is not a strict guarantee for the exact timing on which the function will be invoked. There is a small margin of error due to timer precision. When scaling takes place, the first invocation with a partial batch may take place more quickly or may take up to twice the configured MaxWaitTime.

Applies to