Skip to content

Archive expired submission logs - #226

Merged
pierres merged 1 commit into
mainfrom
archive-submission-log
Sep 3, 2026
Merged

Archive expired submission logs#226
pierres merged 1 commit into
mainfrom
archive-submission-log

Conversation

@pierres

@pierres pierres commented Sep 3, 2026

Copy link
Copy Markdown
Member

Keeps the current month plus two previous months of submission logs in SQLite.

prune-submission-log archives each older month as a gzip-compressed JSON Lines file in SUBMISSION_LOG_ARCHIVE_DIR before deleting it from SQLite.

  • Archives are written durably and atomically.
  • Concurrent archive jobs are rejected safely.
  • A pre-existing monthly archive is warned about and replaced from the authoritative SQLite data.
  • Archives older than 12 months are removed.
  • Pruning fails without deleting logs when archival cannot complete.

@pierres
pierres force-pushed the archive-submission-log branch from 885507f to 11d19ee Compare September 3, 2026 09:54
@pierres
pierres force-pushed the archive-submission-log branch from 29b8ca7 to 6dc54cd Compare September 3, 2026 12:36
@pierres
pierres merged commit bf9e236 into main Sep 3, 2026
8 checks passed
@pierres
pierres deleted the archive-submission-log branch September 3, 2026 14:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant