如何在不知道每个任务 task_id 的情况下删除所有待处理任务?
How can I delete all pending tasks without knowing the task_id for each task?
推荐答案从文档:
$ celery -A proj purge或
from proj.celery import app app.control.purge()(编辑:使用当前方法更新。)
( Updated with current method.)
如何在不知道每个任务 task_id 的情况下删除所有待处理任务?
How can I delete all pending tasks without knowing the task_id for each task?
推荐答案从文档:
$ celery -A proj purge或
from proj.celery import app app.control.purge()(编辑:使用当前方法更新。)
( Updated with current method.)