diff --git a/app/api/admin/path-b/idle-sweep/route.ts b/app/api/admin/path-b/idle-sweep/route.ts index 45dc6bf5..0594e788 100644 --- a/app/api/admin/path-b/idle-sweep/route.ts +++ b/app/api/admin/path-b/idle-sweep/route.ts @@ -7,9 +7,10 @@ * Suspends every running dev container whose `last_active_at` is older * than `minutes` (default 30). Idempotent — re-runs harmlessly. * - * Wire this to a cron (every 5 min) once the frontend is stable: - * */5 * * * * curl -fsS -X POST -H "Authorization: Bearer $SECRET" \ - * https://vibnai.com/api/admin/path-b/idle-sweep + * Wire this to a cron (every 5 min) once the frontend is stable. + * Crontab: "[asterisk]/5 * * * *" running: + * curl -fsS -X POST -H "Authorization: Bearer $SECRET" \ + * https://vibnai.com/api/admin/path-b/idle-sweep * * Saves money (suspended containers don't bill compute) without * destroying state — the workspace volume + cache volume persist, and