21 lines
424 B
Python
21 lines
424 B
Python
|
|
"""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,
|
||
|
|
)
|