js-bao-wss-client / WaitForWorkflowOptions
Interface: WaitForWorkflowOptions
Options for WorkflowsAPI.waitFor.
Properties
timeoutMs?
optionaltimeoutMs?: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.