Skip to content

js-bao-wss-client


js-bao-wss-client / WaitForWorkflowOptions

Interface: WaitForWorkflowOptions ​

Options for WorkflowsAPI.waitFor.

Properties ​

timeoutMs? ​

optional timeoutMs?: number

Maximum time to wait for the run to reach a terminal state before rejecting with a WORKFLOW_WAIT_TIMEOUT JsBaoError. Defaults to 15 minutes (900000 ms).

Set to 0 or Infinity to disable the timeout entirely. WARNING: with no timeout the returned promise (and its workflowStatus listener) lives until the run terminates — only use this for runs you know will end.

Documentation validated against js-bao-wss-client 3.4.0 · js-bao 0.11.0 · primitive-admin 1.0.62 · primitive-app 3.1.0 — 2026-09-30