crowdata / app /tasks /celery_app.py
YOSOYYONOSOYOTRO's picture
Upload folder using huggingface_hub (part 2)
4223796 verified
Raw
History Blame Contribute Delete
556 Bytes
from celery import Celery
from app.config import get_settings
settings = get_settings()
celery_app = Celery(
"crowdata",
broker=settings.redis_url,
backend=settings.redis_url,
include=["app.tasks.report_tasks"],
)
celery_app.conf.update(
task_serializer="json",
accept_content=["json"],
result_serializer="json",
timezone="America/Argentina/Buenos_Aires",
enable_utc=True,
task_track_started=True,
task_soft_time_limit=60,
task_time_limit=120,
worker_prefetch_multiplier=1,
task_acks_late=True,
)