Skip to main content

DEFAULT_FAILED_JOBS_HISTORY_LIMIT

Constant DEFAULT_FAILED_JOBS_HISTORY_LIMIT 

Source
pub const DEFAULT_FAILED_JOBS_HISTORY_LIMIT: u32 = 10;
Expand description

Default SnapshotSchedule.spec.failedJobsHistoryLimit when unset: how many Failed Snapshot CRs from a schedule to retain (the rest are pruned). Bounds failure history so a schedule firing against a persistently-failing precondition or backend doesn’t accumulate Failed CRs forever. GFS retention applies only to successful snapshots, so this is the only bound on failures (ADR-0003). Part of the documented API contract, so it lives here, not in the controller.