Skip to main content

FAILURE_ACTIONS

@forge/monorepo


@forge/monorepo / backend/src / FAILURE_ACTIONS

Variable: FAILURE_ACTIONS

const FAILURE_ACTIONS: readonly ["retry", "skip", "escalate", "fail"]

Defined in: backend/src/flows/index.ts:73

What happens when a step fails — chosen in the definition, not by whichever error surfaced.

escalate is the one worth explaining: it hands the failure to the enclosing scope rather than deciding here. A team member escalates to its manager; a flow step escalates to its parent flow. Without it, "retry or die" is the whole vocabulary, and a manager-led team cannot react to a member failing, which is most of the point of having a manager.