tim*_*ger 8 python celery celery-task celeryd
我有添加一些错误task的celery使用Redis的broker
但现在我想删除不正确的task,我找不到任何方法来做到这一点
是否有一些命令或一些api这样做?
Art*_*nin 23
我知道有两种方法:
1)直接从代理删除队列.在你的情况下,它是Redis.有两个命令可以帮助你:llen(找到正确的队列)和del(删除它).
2)用--purge或--discard选项启动芹菜工人.这是帮助:
--purge, --discard Purges all waiting tasks before the daemon is started.
**WARNING**: This is unrecoverable, and the tasks will
be deleted from the messaging server.
Run Code Online (Sandbox Code Playgroud)