fix: correct KubernetesClient import to K8sClient in Celery tasks

This commit is contained in:
2025-10-06 10:40:20 -03:00
parent 5c5afc85ac
commit bf06ae190a
17 changed files with 1233 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
#!/usr/bin/env python3
"""
Celery worker 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 worker
celery_app.worker_main([
'worker',
'--loglevel=info',
'--concurrency=4',
'--queues=cluster_analysis,prometheus,recommendations',
'--hostname=worker@%h'
])