b5a62ee9a3
- domain: User, Workspace, Project, AssetLibrary, Asset, IngestJob - ports: repository interfaces - application: use cases - adapters: in-memory - API: FastAPI 5 routes - worker: Celery ingest_asset - tests: 4 passing
12 lines
255 B
Python
12 lines
255 B
Python
from celery import Celery
|
|
|
|
|
|
def create_celery_app() -> Celery:
|
|
app = Celery("xiaoxia_saas_worker")
|
|
app.conf.broker_url = "redis://redis:6379/0"
|
|
app.conf.result_backend = "redis://redis:6379/1"
|
|
return app
|
|
|
|
|
|
celery_app = create_celery_app()
|