Add celery autodiscover_tasks and use send_task by name in API
This commit is contained in:
@@ -17,3 +17,5 @@ celery_app.conf.update(
|
|||||||
task_acks_late=True,
|
task_acks_late=True,
|
||||||
worker_prefetch_multiplier=1,
|
worker_prefetch_multiplier=1,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
celery_app.autodiscover_tasks(["app.tasks"])
|
||||||
|
|||||||
Reference in New Issue
Block a user