UpDoc worker
This is a headless cron worker. There are no user-facing pages. The active endpoints are:
/api/healthz— process liveness (no DB call)./api/readyz— readiness, performs a trivial Supabase query./api/cron/process-notifications— notifications outbox dispatcher. Bearer-secured./api/cron/maintain-audit— audit-log partition maintenance. Bearer-secured./api/cron/finalize-expired-shifts— closes stale marketplace postings after roster end. Bearer-secured./api/cron/process-account-deletions— drains account-deletion requests whose 7-day grace has elapsed, GoTrue admin-deleting each finalized auth user. Bearer-secured./api/cron/db-capacity-check— Free-tier DB capacity probe; logs warn at 400 MB / error at 475 MB of the 500 MB ceiling. Bearer-secured.