If POLSIA_IN_PROCESS_CRONS_ENABLED === 'true' → scheduler daemon starts (30s polling)
app.listen(port) — Render health check ready
Scheduler Daemon (Blaxel Migration Notes)
The in-process scheduler runs via setInterval(runSchedulerCycle, 30000). It is guarded by POLSIA_IN_PROCESS_CRONS_ENABLED === 'true'. On Blaxel shadow, that env is false — Blaxel handles scheduling via polsia.toml [[crons]].
See jobs/scheduler-cycle.js for the standalone cron runner (used by Blaxel).
Health Check
Render health probe at /health — returns { "status": "ok" } with no auth required. The /api/health path also returns healthy — kept for backwards compatibility.
Environment Variables
Required
Variable
Description
DATABASE_URL
Neon PostgreSQL connection string. Required — server exits if missing.
PORT
Listen port (default: 3000)
Optional
Variable
Default
Description
POLSIA_IN_PROCESS_CRONS_ENABLED
false
Enable in-process scheduler on Render. Blaxel shadow sets this to false.
POLSIA_ANALYTICS_SLUG
""
Polsia analytics slug for beacon pixel on landing page.