Skip to main content
In Supabase mode, bun run db:push configures the HTTP sync jobs when both pg_cron and pg_net are installed and CRON_SECRET is set. Check the migration output: unavailable extensions or a missing secret skip this setup. Postgres + S3 deployments need an external scheduler.

What your scheduler should call

  • Method: GET
  • Header: Authorization: Bearer <CRON_SECRET>
  • Base URL: SITE_URL
  • Endpoints:
    • /api/sync/events
    • /api/sync/event-creations/enqueue
    • /api/sync/event-creations
    • /api/sync/translations/enqueue
    • /api/sync/translations
    • /api/sync/resolution
    • /api/sync/sports-scores
    • /api/sync/volume/enqueue
    • /api/sync/volume
Example:
Use UTC unless your team needs a strict local timezone. When pg_cron is installed, Supabase mode also creates clean-cron-details at 0 0 * * * and clean-jobs at 15 * * * * as database maintenance jobs. External schedulers should only call the HTTP sync endpoints above. Translation processing requires an OpenRouter key in Integrations and the corresponding options in Locales.

Verify and update the scheduler

Check that scheduled requests succeed and that events, translations, and scores update on the site. Investigate errors in the application logs. After changing SITE_URL or CRON_SECRET, rerun bun run db:push with the new values to update database callbacks. For an external scheduler, update its URL and bearer secret directly.

Expected responses

  • 200: accepted or completed
  • 401: missing or invalid CRON_SECRET
  • 409: sync already running, which can happen on locked routes
  • 500: runtime failure that should be investigated in logs
Do not run duplicate schedulers at the same time. Use either pg_cron or your external cron jobs.