first commit

This commit is contained in:
kyy
2025-10-27 09:18:24 +09:00
commit a5e23e8da5
20 changed files with 1283 additions and 0 deletions

13
utils/celery_utils.py Normal file
View File

@@ -0,0 +1,13 @@
# utils/celery_utils.py
from celery import Celery
from config.setting import CELERY_BROKER_URL, CELERY_RESULT_BACKEND
# Define and export the single Celery app instance
celery_app = Celery(
"ocr_tasks", broker=CELERY_BROKER_URL, backend=CELERY_RESULT_BACKEND
)
@celery_app.task(name="health_check")
def health_check():
return {"status": "ok"}