Files
gh-christianlouis-docuelevate/app/celery_worker.py
T
Christian Krakau-Louis 527c6c86ff Create celery_worker.py
2025-02-09 16:22:24 +01:00

15 lines
308 B
Python

#!/usr/bin/env python3
from celery import Celery
from .config import settings
celery = Celery("document_processor", broker=settings.redis_url, backend=settings.redis_url)
celery.conf.task_routes = {
"app.tasks.*": {"queue": "default"},
}
@celery.task
def test_task():
return "Celery is working!"