21 lines
464 B
Python
21 lines
464 B
Python
#!/usr/bin/env python3
|
|
"""
|
|
Celery beat scheduler startup script.
|
|
"""
|
|
import os
|
|
import sys
|
|
from celery import Celery
|
|
|
|
# Add the app directory to Python path
|
|
sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
|
|
|
|
from app.celery_app import celery_app
|
|
|
|
if __name__ == '__main__':
|
|
# Start Celery beat scheduler
|
|
celery_app.start([
|
|
'beat',
|
|
'--loglevel=info',
|
|
'--scheduler=celery.beat:PersistentScheduler'
|
|
])
|