mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-07-10 22:32:16 +02:00
feat: added celery and removed background_tasks for MQ's
- removed pre commit hooks - updated docker setup - updated github docker actions - updated docs
This commit is contained in:
parent
031dc055da
commit
c80bbfa867
27 changed files with 1664 additions and 1038 deletions
13
surfsense_backend/celery_worker.py
Normal file
13
surfsense_backend/celery_worker.py
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
"""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()
|
||||
Loading…
Add table
Add a link
Reference in a new issue