Skip to main content

FlowBudget

@forge/monorepo


@forge/monorepo / backend/src / FlowBudget

Type Alias: FlowBudget

FlowBudget = object

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

What a flow or a team may spend before it is stopped.

Three dimensions because they fail differently, and a ceiling on one says nothing about the others. Steps bound a loop that makes no progress. Cost bounds a loop that makes expensive progress. Wall-clock bounds a step that hangs, which neither of the others catches — a flow waiting on a webhook consumes no steps and no money.

Properties

maxCostMinorUnits?

readonly optional maxCostMinorUnits?: number

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


maxSteps

readonly maxSteps: number

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


maxWallClockMs?

readonly optional maxWallClockMs?: number

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