Run Log Retention Policy #83
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Context
Over time, run logs will grow unboundedly. A configurable retention policy automatically purges old data.
Tasks
LOG_RETENTION_DAYStoConfigstruct (default: 30)main.gothat:run_logsrows wherelogged_at < NOW() - INTERVAL '<retention> days'runsrows wherecreated_at < NOW() - INTERVAL '<retention> days'ANDstatusis terminalDeleteOldRunLogs :exec,DeleteOldRuns :execGET /admin/configendpoint (Admin only) returning current system config includinglog_retention_days