SurfSense/surfsense_backend/celery_worker.py

14 lines
289 B
Python
Raw Normal View History

"""Celery worker startup script."""
import os
import sys
# Add the app directory to the Python path
sys.path.insert(0, os.path.join(os.path.dirname(__file__), "app"))
from app.celery_app import celery_app
if __name__ == "__main__":
# Start the Celery worker
celery_app.start()