续费VIP 立即续费VIP 会员中心 VIP福利社 VIP免费专区 VIP专属特权 客户端 登录 百度文库 其他 celery result_expires pendingcelery result_expires pending celery result_expires pending:芹菜结果_待定©2022 Baidu |由 百度智能云 提供计算服务 | 使用百度前必读 | 文库协议 | 网站地图 | 百度营销 ...
from celery import Celery CONFIG = { 'BROKER_URL': 'redis://localhost:6379/0', 'CELERY_RESULT_BACKEND': 'redis://localhost:6379/0', 'CELERY_RESULT_EXPIRES': 15, # 15 secs 'BROKER_POOL_LIMIT': 0, # redis connection get closed once task is done.. } celery = Celery('tasks', conf...
I tried settingCELERY_TASK_RESULT_EXPIRESto different values but it doesn't seem to make any difference. Solved, see this issue:#3868 (comment) Sign in to view Hi. I'm running into this. So what I can't understand is this. If a queue is already declared, and say has some value of...
默认情况下,Celery任务结果将一直保留在内存中,直到任务结果被检索或超时。如果超时时间过长或任务结果过多,这可能会导致内存问题。因此,使用celery_task_result_expires可以控制任务结果的过期时间,以释放内存空间。 使用方法很简单。在任务定义中,将celery_task_result_expires设置为一个整数值,表示任务结果过期的秒数...
Checklist os: ubuntu 16.04 celery version: 4.2.1 python version: 3.6 broker: redis backend: redis Steps to reproduce chord(group_tasks)(success_callback.s().on_error(on_error_callback.s())) celery.conf.update(result_expires=0) or celery...