import { query } from "@eden/database"; /** * No real async jobs exist yet (BullMQ/Redis are only added when the first * job with a genuine need shows up — see docs/adr/0002-container-topology.md * and Master Prompt §4.1). This entrypoint exists so the compose topology * matches the documented architecture from day one and proves the worker * container can reach Postgres. */ async function main() { await query("SELECT 1"); // eslint-disable-next-line no-console console.log("[eden-worker] up, database reachable, no jobs configured yet"); // Keep the container alive; replace with a real job queue consumer // (BullMQ) once Fase 5/6 introduces async jobs (billing runs, PDF // generation, fiscal retries, etc.). setInterval(() => {}, 1 << 30); } main().catch((err) => { // eslint-disable-next-line no-console console.error("[eden-worker] fatal:", err); process.exit(1); });