Skip to content

feat(ops): job retention and /readyz (M6) - #24

Merged
ArianAr merged 1 commit into
mainfrom
feat/job-retention
Jul 16, 2026
Merged

feat(ops): job retention and /readyz (M6)#24
ArianAr merged 1 commit into
mainfrom
feat/job-retention

Conversation

@ArianAr

@ArianAr ArianAr commented Jul 16, 2026

Copy link
Copy Markdown
Owner

Summary

Continues M6 after Prometheus metrics.

Closes #23

  • `PurgeOldJobs` + hourly retention runner (`-job-retention-days` / `GANTRY_JOB_RETENTION_DAYS`)
  • `GET /readyz` (SQLite ping); auth-exempt like healthz/metrics
  • `docs/ops.md` for probes, retention, timeouts
  • ROADMAP M6 items checked where delivered

Test

  • `go test ./...` including purge unit test

Add GANTRY_JOB_RETENTION_DAYS purge of terminal jobs, GET /readyz DB
ping, and ops notes for probes/timeouts (M6).
@ArianAr ArianAr added enhancement New feature or request backend Go server and API labels Jul 16, 2026

@ArianAr ArianAr left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review: purge only touches terminal jobs with completed_at; ready/live split is correct. Approve when CI green.

@ArianAr
ArianAr enabled auto-merge (squash) July 16, 2026 18:40
@ArianAr
ArianAr merged commit a331ed2 into main Jul 16, 2026
8 of 9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backend Go server and API enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: job history retention and purge policy (M6)

1 participant