Files
jusfutura/app/celery_app.py
T
2026-08-19 21:33:13 -03:00

21 lines
358 B
Python

# 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,
)