SDK reference · Node SDK

prov.trace.traces.wait

prov.trace.traces.wait in Node SDK. Poll a job until it is terminal (or the timeout passes).

Signature

prov.trace.traces.wait(jobId: string, opts?: { timeoutMs?: number; intervalMs?: number }): Promise<TraceJob>

Parameters

jobIdstringRequired
opts{ timeoutMs?: number; intervalMs?: number }

Returns

Promise<TraceJob>

HTTP operation

Runs locally, with no request to the API.

Was this page helpful? Send us feedback

LLM? Read llms.txt.