MCPcopy
hub / github.com/celery/celery / reserved

Method reserved

celery/app/control.py:168–177  ·  view source on GitHub ↗

Return list of currently reserved tasks, not including scheduled/active. Returns: Dict: Dictionary ``{HOSTNAME: [TASK_INFO,...]}``. See Also: For ``TASK_INFO`` details see :func:`query_task` return value.

(self, safe=None)

Source from the content-addressed store, hash-verified

166 return self._request('scheduled')
167
168 def reserved(self, safe=None):
169 """Return list of currently reserved tasks, not including scheduled/active.
170
171 Returns:
172 Dict: Dictionary ``{HOSTNAME: [TASK_INFO,...]}``.
173
174 See Also:
175 For ``TASK_INFO`` details see :func:`query_task` return value.
176 """
177 return self._request('reserved')
178
179 def stats(self):
180 """Return statistics of worker.

Callers 2

test_parent_idsMethod · 0.80
test_reservedMethod · 0.80

Calls 1

_requestMethod · 0.95

Tested by 2

test_parent_idsMethod · 0.64
test_reservedMethod · 0.64