cloudairambo / celery_app.py
rihancloud's picture
Deploy clean FastAPI backend without node_modules
99fdb5f
Raw History Blame Contribute Delete
312 Bytes
from celery import Celery
celery_app = Celery(
"converter",
broker="redis://localhost:6379/0",
backend="redis://localhost:6379/1"
)
celery_app.conf.update(
task_serializer="json",
accept_content=["json"],
result_serializer="json",
)
# 👇 FORCE IMPORT
import workers.converter_worker