This commit is contained in:
beabigegg
2025-08-17 15:26:44 +08:00
commit 0fee703b84
60 changed files with 8042 additions and 0 deletions

13
celery_app.py Normal file
View File

@@ -0,0 +1,13 @@
from celery import Celery
from dotenv import load_dotenv
# Load environment variables from .env file
load_dotenv()
CELERY_BROKER_URL = 'redis://localhost:6379/0'
CELERY_RESULT_BACKEND = 'redis://localhost:6379/0'
celery = Celery('tasks',
broker=CELERY_BROKER_URL,
backend=CELERY_RESULT_BACKEND,
include=['tasks']) # Point to the tasks module