feat: add celery & redis for background data processing

This commit is contained in:
2026-03-03 12:27:14 +00:00
parent 2e0e842525
commit 3a58705635
3 changed files with 45 additions and 7 deletions

View File

@@ -0,0 +1,16 @@
from celery import Celery
def create_celery():
celery = Celery(
"ethnograph",
broker="redis://redis:6379/0",
backend="redis://redis:6379/0",
)
celery.conf.task_serializer = "json"
celery.conf.result_serializer = "json"
celery.conf.accept_content = ["json"]
return celery
celery = create_celery()
from server.queue import tasks