init commit
This commit is contained in:
15
app/tasks/celery_app.py
Normal file
15
app/tasks/celery_app.py
Normal file
@@ -0,0 +1,15 @@
|
||||
from celery import Celery
|
||||
from app.core.config import settings
|
||||
|
||||
celery_app = Celery(
|
||||
"autopost",
|
||||
broker=settings.celery_broker_url,
|
||||
backend=settings.celery_result_backend,
|
||||
)
|
||||
|
||||
celery_app.conf.update(
|
||||
timezone=settings.tz,
|
||||
task_serializer="json",
|
||||
accept_content=["json"],
|
||||
result_serializer="json",
|
||||
)
|
||||
Reference in New Issue
Block a user