maintenance

command
v0.1.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 16, 2026 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Overview

Command mere-maintenance sweeps expired oauth_codes, oauth_access_tokens, and sessions rows out of Postgres. It is a one-shot binary intended for invocation via host cron / Kamal scheduled task — not a long-running daemon. Failure surfaces via a non-zero exit code; success logs a single JSON line summarising per-table counts.

The binary reuses internal/config so it picks up the same Postgres connection settings as cmd/server; ClickHouse + OAuth issuer vars must be present in the environment but are unused. In the production Kamal container they are already set, so this is invisible.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL