Skip to main content

Module escalator

Module escalator 

Source
Expand description

Resolution of approval gates that missed their SLA deadline.

An approval gate can carry a deadline. The deadline lives on the step row, so it survives an API or worker restart. The Escalator periodically hands every expired gate to the engine’s ApprovalEscalator, which applies the gate’s configured escalation policy.

Gates without a deadline are never touched, and a deadline fires at most once even when several API instances run this loop.

Structs§

Escalator
Periodic task that escalates approval gates past their deadline.

Constants§

DEFAULT_ESCALATOR_BATCH_SIZE
How many gates a single tick resolves.
DEFAULT_ESCALATOR_INTERVAL
How often expired approval deadlines are collected.