ops: wire the campus-cleanup Railway service (cron schedule + variables, development first)
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- Half a day
- Newbie friendliness
- 8/100
Research direction
This is Railway dashboard and access work, not a code change: start with docs/cleanup-deployment.md and Dockerfile.cleanup (shipped in #1261), comparing them with Dockerfile.migrate for the entrypoint pattern. Done means the dev service campus-cleanup has its variables and cron schedule set, and a cleanup_runs row appears in the audit DB, followed by the production steps and an update to docs/railway-variables.md. Production credentials and superadmin access are required, so a newcomer should not start this alone.
Written by the indexing model from the issue text.
Description
Tracking issue for the Railway side of the cleanup deployment (#1243 directive 2; code PR campus#1261 — merging that alone deploys nothing; the service must be created explicitly). Runbook: docs/cleanup-deployment.md (ships with #1261). Superadmin activity; development first, then production.
Checklist
- Development: create service
campus-cleanupexplicitly into the dev environment (never duplicate an environment — #1109). Source: this repo, branchweekly, autodeploy on. - Build = Dockerfile, path
Dockerfile.cleanup(NOT railpack — the entrypoint must be the image CMD, likeDockerfile.migrate). - No domain, no healthcheck (batch job; failures show as CRASHED deployments).
- Variables (references resolve per environment):
CLEANUP_JOB_AUDIT_POSTGRESDB_URI=${{"campus.audit-postgres".DATABASE_URL}}CLEANUP_JOB_AUTH_POSTGRESDB_URI=${{"campus.auth-postgres".DATABASE_URL}}CLEANUP_JOB_AUTH_MONGODB_URI=${{"campus.auth-mongodb-dev".MONGO_URL}}DEPLOY=campus.cleanup,ENVfrom shared.
- Railway cron schedule on the service (≥5 min apart; cadence decision: #1249).
railway cron runfor one-offs. - First dev run: check the
cleanup_runsledger row lands in the audit DB and the service logs show the three jobs' counts. - Production: same steps in the production environment (prod Mongo var:
campus.auth-mongodb; credentials-before-first-boot rules #1105). - Update
docs/railway-variables.mdrows from "not yet created" to the live values.
Related: #1243 (epic), #1249 (cadence), #1253 (what may be deleted), #1261 (the code).
- Dominant language
- Python
- Stars
- 0
- Forks
- 2
- Avg merge
- 39m
- Merged PRs (30d)
- 235
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from nyjc-computing/campus
-
enhancement for-collaborators for-contributors
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
nyjc-computing/campus#451 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 4/5 3-5 days Newbie friendliness 42/100
nyjc-computing/campus#1320 ·
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 25/100
nyjc-computing/campus#1309 ·
Maintainers usually reply within 1 day
-
Difficulty 4/5 3-5 days Newbie friendliness 18/100
nyjc-computing/campus#1300 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 5/5 Over a week Newbie friendliness 5/100
nyjc-computing/campus#1295 · 4 comments ·
Maintainers usually reply within 1 day
All issues in nyjc-computing/campus
Similar issues
-
triage
Difficulty 1/5 1-3 hours Newbie friendliness 88/100
kornia/kornia-rs#1416 · 1 comment ·
Maintainers usually reply within 2 days
-
ui
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
PolicyEngine/ai-inequality#64 ·
Maintainers usually reply within 1 day
-
LinearGaussianStateSpace.dist splits states and observations wrongly when the transition varies over timePossibly taken @PabloRoque claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
pymc-devs/pymc-extras#839 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Maintainers usually reply within 1 day