Initial YakPanel commit
This commit is contained in:
20
YakPanel-server/backend/app/tasks/celery_app.py
Normal file
20
YakPanel-server/backend/app/tasks/celery_app.py
Normal file
@@ -0,0 +1,20 @@
|
||||
"""YakPanel - Celery application"""
|
||||
from celery import Celery
|
||||
from app.core.config import get_settings
|
||||
|
||||
settings = get_settings()
|
||||
|
||||
celery_app = Celery(
|
||||
"cit_panel",
|
||||
broker=settings.redis_url,
|
||||
backend=settings.redis_url,
|
||||
include=["app.tasks.install"],
|
||||
)
|
||||
|
||||
celery_app.conf.update(
|
||||
task_serializer="json",
|
||||
accept_content=["json"],
|
||||
result_serializer="json",
|
||||
timezone="UTC",
|
||||
enable_utc=True,
|
||||
)
|
||||
Reference in New Issue
Block a user