Time-Bound

time-bound

Limits query execution to a maximum timespan. If the upstream data source has not completed within the specified duration, the query is cancelled.

Spec

... | time-bound <timespan_expression>

Parameters

timespan_expression - A timespan value specifying the maximum execution time.

Return Value

The same schema as the input. Output is truncated if the time limit is reached.

Example

Run a query for at most 30 seconds:

range val from 1 to 10 step 1
| time-bound 30s
| where val < 5
val
1
2
3
4