back
This commit is contained in:
13
celery_app.py
Normal file
13
celery_app.py
Normal 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
|
Reference in New Issue
Block a user