Background execution module for queue consumers and scheduled jobs.
Workers handle tasks that must run outside the HTTP request lifecycle: settlement sweeps, expiry processing, and any other async work enqueued by the API or Oracle.
| Concern | Description |
|---|---|
| Queue consumers | Process jobs pushed to Redis by the API or Oracle (e.g. trade settlement) |
| Scheduled jobs | Cron-style tasks such as market expiry sweeps and position reconciliation |
Module scaffolded. No queues or jobs are implemented yet. See docs/architecture.md for how Workers fit into the overall system.
apps/workers/
├── src/
│ ├── consumers/ # One file per queue consumer
│ ├── schedulers/ # Cron / interval jobs
│ └── index.ts # Entry point
└── README.md
# Not yet available — implementation pending- Create a consumer in
src/consumers/<name>.tsor a scheduler insrc/schedulers/<name>.ts - Register it in
src/index.ts - Document the queue name and payload shape in this README