[V1.0] Working application, added notifications.
Ready to upload to store.
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
# core/celery_app.py
|
||||
from celery import Celery
|
||||
from core.config import settings
|
||||
|
||||
celery_app = Celery(
|
||||
"worker",
|
||||
broker=settings.REDIS_URL,
|
||||
@@ -8,5 +9,15 @@ celery_app = Celery(
|
||||
include=[
|
||||
"modules.auth.tasks",
|
||||
"modules.admin.tasks",
|
||||
"modules.calendar.tasks", # Add calendar tasks
|
||||
],
|
||||
)
|
||||
)
|
||||
|
||||
# Optional: Configure Celery Beat if you need periodic tasks later
|
||||
# celery_app.conf.beat_schedule = {
|
||||
# 'check-something-every-5-minutes': {
|
||||
# 'task': 'your_app.tasks.check_something',
|
||||
# 'schedule': timedelta(minutes=5),
|
||||
# },
|
||||
# }
|
||||
celery_app.conf.timezone = "UTC" # Recommended to use UTC
|
||||
|
||||
Reference in New Issue
Block a user