pub const MAX_START_FN_DURATION: Duration;Expand description
Hard upper bound on how long a Wasm module’s start function (and any
other code that runs inside wasmtime::Instance::new_async) is allowed
to execute before the epoch interrupt trips.
Without this cap a SpawnConfig { deadline: None, .. } would set the
per-store epoch deadline to u64::MAX, which means an infinite-loop
start function would burn forever inside Instance::new_async. Because
the instance is not registered with the executor until that call
returns, TensorWasmExecutor::terminate cannot reach it — the only
thing that can interrupt the loop is the epoch deadline. 30 seconds is
generous for legitimate start functions (which typically just call out
to a few initialisers) while still bounding the worst case.