芹菜:列出所有任务,计划的,活动的*和*完成的

问题描述:

赏金更新

如果可能的话,我想要一个不包含监视线程的解决方案。

I'd like a solution that does not involve a monitoring thread, if possible.

我知道我可以使用预定的和活动任务$ c>检查我的应用程序类 Control

I know I can view scheduled and active tasks using the Inspect class of my apps Control.

i = myapp.control.inspect()

currently_running = i.active()
scheduled = i.scheduled()

但是我找不到任何函数来显示已经完成的任务。我知道此信息至少可以临时访问,因为我可以通过 task_id 查找完成的任务:

But I could not find any function to show already finished tasks. I know that this information mus be at least temporarily accessible, because I can look up a finished task by its task_id:

>>> r = my task.AsyncResult(task_id=' ... ')
>>> r.state
u'SUCCESS'

如何获得完整已计划,活动和已完成任务的列表?还是一次列出所有所有任务?

How can I get a complete list of scheduled, active and finished tasks? Or possibly a list of all tasks at once?

芹菜花显示任务(活动,完成,保留等)。它可以按时间,工作人员和类型过滤任务。

Celery Flower shows tasks (active, finished, reserved, etc) in real time. It enables to filter tasks by time, workers and types.

https://github.com/mher/flower