Skip to content

js-bao-wss-client


js-bao-wss-client / WaitForWorkflowStatus

Type Alias: WaitForWorkflowStatus ​

WaitForWorkflowStatus = "completed" | "failed" | "terminated" | "apply_pending" | "apply_claimed" | "skipped"

Terminal status reported by workflows.waitFor(). Narrower than WorkflowStatusValue — waitFor only resolves once the run is done, so "running" can never be reported. apply_pending/apply_claimed are terminal for the purpose of waiting: the workflow finished and its result is available for the client-side apply step.

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