Skip to content
Français

WorkflowQuotaPolicy

import type { WorkflowQuotaPolicy } from "@elie-laloum/outpost";
  • actionRequired
    "pause"
    Behavior on a quota error; pause is the only supported action.
  • maxWaitMsOptional
    number | undefined
    Longest wait in milliseconds for a known future reset inside the current start() call; a later or unknown reset leaves the task paused and the workflow returns paused. Nonnegative safe integer, default 0.
export interface WorkflowQuotaPolicy {
  readonly action: "pause";
  /** Longest in-process wait for a known reset; later resets pause durably. */
  readonly maxWaitMs?: number;
}