js-bao-wss-client / WaitForWorkflowResult
Interface: WaitForWorkflowResult
Result from WorkflowsAPI.waitFor. Resolved once the run reaches a terminal state.
Properties
error?
optionalerror?:WorkflowRunErrorWire|null
Why the run failed, exactly as it arrived — an object from a status read, a string from the terminal workflowStatus frame.
failure?
optionalfailure?:WorkflowRunError
The same error, normalized. Present on a failed result whichever path settled the wait, so a caller reporting a failure does not have to know which one did.
output?
optionaloutput?:any
Final output of the run, when available.
skipReason?
optionalskipReason?:"LOCK_CONTENTION"
Why the run did not run, when status === "skipped".
status
status:
WaitForWorkflowStatus
Terminal status of the run. Never "running".