M
M
m0ody2013-11-28 23:26:42
Python
m0ody, 2013-11-28 23:26:42

Celery: how to get a list of tasks waiting for their turn to be executed?

Colleagues, tell me how to get a list of tasks waiting for their turn to be executed?
Tasks that are currently running can be found next. way:

from celery.task.control import inspect
i = inspect()
i.active()

Judging by the documentation , the tasks waiting for their turn should be returned by the i.scheduled() function, but it returns an empty array:
from celery.task.control import inspect
i = inspect()
i.scheduled() # => {u'[email protected]': []}

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
alz, 2013-11-29
@alz

Reserved tasks are tasks that has been received, but is still waiting to be executed.
scheduled are tasks with deferred execution

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question