MCPcopy Create free account
hub / github.com/celery/celery / query_task

Function query_task

celery/worker/control.py:108–113  ·  view source on GitHub ↗

Query for task information by id.

(state, ids, **kwargs)

Source from the content-addressed store, hash-verified

106 signature='[id1 [id2 [... [idN]]]]',
107)
108def query_task(state, ids, **kwargs):
109 """Query for task information by id."""
110 return {
111 req.id: (_state_of_task(req), req.info())
112 for req in _find_requests_by_id(maybe_list(ids))
113 }
114
115
116def _find_requests_by_id(ids,

Callers 1

Calls 4

_state_of_taskFunction · 0.85
_find_requests_by_idFunction · 0.85
maybe_listFunction · 0.85
infoMethod · 0.45

Tested by 1