fix: correct Python path in Celery worker scripts
This commit is contained in:
@@ -7,7 +7,7 @@ import sys
|
|||||||
from celery import Celery
|
from celery import Celery
|
||||||
|
|
||||||
# Add the app directory to Python path
|
# Add the app directory to Python path
|
||||||
sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
|
sys.path.insert(0, '/app')
|
||||||
|
|
||||||
from app.celery_app import celery_app
|
from app.celery_app import celery_app
|
||||||
|
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ import sys
|
|||||||
from celery import Celery
|
from celery import Celery
|
||||||
|
|
||||||
# Add the app directory to Python path
|
# Add the app directory to Python path
|
||||||
sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
|
sys.path.insert(0, '/app')
|
||||||
|
|
||||||
from app.celery_app import celery_app
|
from app.celery_app import celery_app
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user