js-bao-wss-client / RunSyncWorkflowOptions
Interface: RunSyncWorkflowOptions
Options for synchronously running a workflow via workflows.runSync.
Properties
contextDocId?
optionalcontextDocId?:string
Document ID to associate the run with. Defaults to the user's root document.
input?
optionalinput?:Record<string,any>
Input data to pass to the workflow. Defaults to {} if not provided.
meta?
optionalmeta?:Record<string,unknown>
User-defined metadata attached to the run (max 1KB). Returned in listRuns and runSync envelope.
runKey?
optionalrunKey?:string
Key to identify this run (for idempotency). Auto-generated if not provided.
signal?
optionalsignal?:AbortSignal
Optional AbortSignal. When fired before the workflow completes the run resolves with status: "terminated". The promise is rejected only if the transport call itself is aborted before the request is sent — completed work still resolves.
timeoutMs?
optionaltimeoutMs?:number
Hard wall-clock ceiling in milliseconds. Defaults to 5000. Capped server-side to 30000 (Workers CPU budget). When exceeded, the run resolves with status: "timeout".
workflowKey
workflowKey:
string
The workflow key identifying which workflow to run.