Adicionar app/celery_app.py

This commit is contained in:
2026-08-19 21:33:13 -03:00
parent 1c8a913452
commit 619f2283cd
+20
View File
@@ -0,0 +1,20 @@
# All comments are in English.
from celery import Celery
import os
redis_url = os.getenv("REDIS_URL", "redis://redis:6379/0")
celery = Celery(
"safira",
broker=redis_url,
backend=redis_url,
)
celery.conf.update(
task_serializer="json",
accept_content=["json"],
result_serializer="json",
timezone="UTC",
enable_utc=True,
)