How to get time to complete a task using celery?

I want to get runtime for any task, assuming I have task_id. Is there any way to get runtime? I know that time will be recorded by celery, but I do not want to parse the log file. Similarly, is there a way to get a timeout for a task, in other words, from the moment the task is assigned to the node worker until it starts. Basically, I want to capture the whole life of any task.

+4
source share

Source: https://habr.com/ru/post/1480183/


All Articles