Files
xiaoxia-saas/apps/api/app/core/celery_app.py
T
Xiaoxia AI 02000b9889
Tests / test (push) Failing after 31s
Tests / lint (push) Failing after 31s
fix: decouple api from worker package imports
2026-06-15 18:59:58 +08:00

10 lines
256 B
Python

from celery import Celery
from app.core.config import get_settings
settings = get_settings()
celery_app = Celery("xiaoxia-saas-api")
celery_app.conf.broker_url = settings.celery_broker_url
celery_app.conf.result_backend = settings.celery_result_backend