tt
Browse files- backend/celery_config.py +2 -2
backend/celery_config.py
CHANGED
@@ -6,7 +6,7 @@ This centralizes all Celery configuration to avoid conflicts.
|
|
6 |
import os
|
7 |
from celery import Celery
|
8 |
from celery.schedules import crontab
|
9 |
-
from backend.config import Config
|
10 |
|
11 |
# Create Celery instance
|
12 |
celery_app = Celery('lin_app')
|
@@ -70,6 +70,6 @@ celery_app.conf.update(
|
|
70 |
)
|
71 |
|
72 |
# Import tasks to ensure they're registered
|
73 |
-
from backend import celery_tasks
|
74 |
|
75 |
__all__ = ['celery_app']
|
|
|
6 |
import os
|
7 |
from celery import Celery
|
8 |
from celery.schedules import crontab
|
9 |
+
from config import Config # Changed from 'from backend.config import Config'
|
10 |
|
11 |
# Create Celery instance
|
12 |
celery_app = Celery('lin_app')
|
|
|
70 |
)
|
71 |
|
72 |
# Import tasks to ensure they're registered
|
73 |
+
from . import celery_tasks # Changed from 'from backend import celery_tasks'
|
74 |
|
75 |
__all__ = ['celery_app']
|