Repository navigation
ops: retention cron dry-run and backup runbook (#86) - #320
Merged
Merged
Conversation
Finalize CHANGELOG for patch release; build-time /health version no longer needs TELEMETRY_API_VERSION on Railway. Co-authored-by: Cursor <[email protected]>
Document step-by-step Railway cron setup and Postgres backup/restore, and add --dry-run to the retention CLI so operators can verify sweeps locally without deleting data. Co-authored-by: Cursor <[email protected]>
1 of 5 tasks
unjica
added a commit
to Dari0o/telemetry-tracker
that referenced
this pull request
Jul 9, 2026
Retention dry-run CLI and Railway backup/cron runbook from PR Telemetry-Tracker#320 (Telemetry-Tracker#86). Co-authored-by: Cursor <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
--dry-run/--helpto the retention CLI so operators can verify sweeps locally without deleting datadocs/RAILWAY.mdwith step-by-step Railway cron setup and Postgres backup/restore proceduresPart of #86 — merge after review; close the issue only after manual Railway steps below are done.
Issue #86 checklist
Repo (this PR)
run-retention.ts→node dist/jobs/run-retention.js)DATABASE_URL)pg_dump, PITR, restore drill)pnpm --filter api retention -- --dry-runManual Railway (operator — not automatable in repo)
apps/api, startnode dist/jobs/run-retention.js, schedule0 3 * * *DATABASE_URLwith cron service (same as API){"ok":true,"dryRun":false,"projectsProcessed":…}and deployment exitsTest plan
pnpm lintpnpm testpnpm buildpnpm --filter api retention -- --helppnpm --filter api retention -- --dry-runagainst dev Postgres (requiresdocker compose up -d)