/** * Cortex worker entrypoint. Long-running process that polls pyre-web * for queued jobs, claims one at a time, executes the ingest pipeline, * and reports results back. * * Architecture: see Pyre Business Plan doc 25 (Cortex Production * Readiness). The worker is a peer to the per-tenant MCP server — * same Docker image, different entrypoint. Deployed as a separate * Fly app (`cortex-workers`) with autoscale-to-zero. * * Required env: * PYRE_WEB_URL — e.g. https://pyre.sh or https://dev.pyre.sh * PRZM_CORTEX_WORKER_SECRET — shared bearer for /api/cortex/jobs/* endpoints * WORKER_ID — opaque id, defaults to FLY_MACHINE_ID or hostname * * Optional env: * PRZM_CORTEX_WORKER_POLL_MS — poll interval when queue is empty (default 5000) * PRZM_CORTEX_WORKER_IDLE_EXIT_MS — exit after this many ms of empty polls * so Fly auto_stop_machines can park us * (default 60000; 0 disables idle exit) */ export declare function runWorker(): Promise; //# sourceMappingURL=worker.d.ts.map