Skip to content
Français

WorkflowTerminationCode

import type { WorkflowTerminationCode } from "@elie-laloum/outpost";

Reason for an unsuccessful workflow termination, exposed on WorkflowResult, finish events and WorkflowFailure.code. Uses FaultCode, failed for unclassified errors and usage-unavailable for incomplete budget accounting. Successful and suspended runs have no termination code.

Complete example and detailed rules.

export type WorkflowTerminationCode =
  FaultCode | "failed" | "usage-unavailable";