fix: 修复 redis 异常后 celery 旧任务不执行的问题

v2.25
吴小白 2022-09-20 11:43:36 +08:00 committed by Jiangjie.Bai
parent f969444ddd
commit c56f4dec07
1 changed files with 1 additions and 0 deletions

View File

@ -131,6 +131,7 @@ CELERY_TASK_EAGER_PROPAGATES = True
CELERY_WORKER_REDIRECT_STDOUTS = True
CELERY_WORKER_REDIRECT_STDOUTS_LEVEL = "INFO"
CELERY_TASK_SOFT_TIME_LIMIT = 3600
CELERY_WORKER_CANCEL_LONG_RUNNING_TASKS_ON_CONNECTION_LOSS = True
if REDIS_USE_SSL:
CELERY_BROKER_USE_SSL = CELERY_REDIS_BACKEND_USE_SSL = {