MCPcopy
hub / github.com/celery/celery / query_task

Function query_task

celery/worker/control.py:107–112  ·  view source on GitHub ↗

Query for task information by id.

(state, ids, **kwargs)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 4

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

Tested by

no test coverage detected