Celery Tasks History

I am creating a framework for completing tasks on top of a Celery framework.

I would like to see a list of recently completed tasks (in the last 2-7 days).

Looking at the API, I can find the object app.backend, but I canโ€™t figure out how to make a request to retrieve the tasks.

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

Is there a way to work with the history / results of tasks with the API?

I tried using Flower, but it can handle events and cannot get the story before it starts.

+4
source share
2 answers

You can use the persisent parameter, for example: flower -A ctq.celery --persistent=True

+3
source

All Articles