Skip to content

js-bao-wss-client


js-bao-wss-client / WorkflowRunErrorCode

Type Alias: WorkflowRunErrorCode ​

WorkflowRunErrorCode = "LOCK_CONTENTION" | "LOCK_TIMEOUT"

Platform-owned classification of a failed run (WorkflowRun.errorCode, the workflowStatus event's errorCode). A closed set the server writes; an app can neither mint nor spoof a value.

  • LOCK_CONTENTION — the run lost a declarative-lock race and the workflow declared onContention = "fail".
  • LOCK_TIMEOUT — the run waited out an onContention = "block" budget without winning the key.

Branch on this rather than matching errorMessage text.

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