芹菜任务历史 [英] Celery task history

查看:102
本文介绍了芹菜任务历史的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在Celery框架之上构建一个用于执行任务的框架.

I am building a framework for executing tasks on top of Celery framework.

我想查看最近执行的任务列表(最近2-7天).

I would like to see the list of recently executed tasks (for the recent 2-7 days).

使用API​​,我可以找到 app.backend 对象,但无法弄清楚如何进行查询以提取任务.

Looking on the API I can find app.backend object, but cannot figure out how to make a query to fetch tasks.

例如,我可以使用Redis或数据库之类的后端.我不想显式地将SQL查询写入数据库.

For example I can use backends like Redis or database. I do not want to explicitly write SQL queries to database.

是否可以使用API​​处理任务历史记录/结果?

Is there a way to work with task history/results with API?

我尝试使用Flower,但它只能处理事件,并且无法在启动之前获取历史记录.

I tried to use Flower, but it can only handle events and cannot get history before its start.

推荐答案

您可以使用永久选项,例如: flower -A ctq.celery --persistent = True

You can use the persisent option,eg: flower -A ctq.celery --persistent=True

这篇关于芹菜任务历史的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆