fix: correct KubernetesClient import to K8sClient in Celery tasks
This commit is contained in:
20
app/workers/celery_beat.py
Normal file
20
app/workers/celery_beat.py
Normal file
@@ -0,0 +1,20 @@
|
||||
#!/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'
|
||||
])
|
||||
Reference in New Issue
Block a user