This commit is contained in:
valenti
2026-09-08 07:21:34 -04:00
commit a4b224da8e
169 changed files with 27483 additions and 0 deletions
+16
View File
@@ -0,0 +1,16 @@
"""asf-worker — stateless RabbitMQ consumer ("gli addetti alle poste").
Each subscribed queue maps to a handler. Handlers look up the persistent
Mongo ``Job`` record, update its status to running → completed|failed and
optionally publish domain events.
Workers are horizontally scalable. All persistent state lives in MongoDB,
never in process memory.
"""
__version__ = "0.1.0"
from .config import WorkerSettings, get_settings
from .worker import run_worker, build_consumer, JobHandlerFn
__all__ = ["WorkerSettings", "get_settings", "run_worker", "build_consumer", "JobHandlerFn"]