Skip to main content

DEFAULT_RUN_EVENT_RETENTION_DAYS

@forge/monorepo


@forge/monorepo / backend/src / DEFAULT_RUN_EVENT_RETENTION_DAYS

Variable: DEFAULT_RUN_EVENT_RETENTION_DAYS

const DEFAULT_RUN_EVENT_RETENTION_DAYS: 90 = 90

Defined in: backend/src/retention/index.ts:32

How long a run's events are kept.

Provisional, and marked as such. #151 asks the product owner which it should be — 30 days, 90 days, or indefinite-until-configured — and that is a compliance answer, not a technical one. 90 days is the level the table's own purpose implies: long enough that a customer investigating last quarter's run still has its log, short enough that the largest table in the schema does not grow without bound. Nobody has agreed to it.

A deployment overrides it. The default exists so an unconfigured deployment prunes something rather than nothing — the failure direction being "an old log was removed" rather than "the disk filled".