MCPcopy
hub / github.com/celery/celery / get_key_for_task

Method get_key_for_task

celery/backends/base.py:983–987  ·  view source on GitHub ↗

Get the cache key for a task by id.

(self, task_id, key='')

Source from the content-addressed store, hash-verified

981 pass
982
983 def get_key_for_task(self, task_id, key=''):
984 """Get the cache key for a task by id."""
985 if not task_id:
986 raise ValueError(f'task_id must not be empty. Got {task_id} instead.')
987 return self._get_key_for(self.task_keyprefix, task_id, key)
988
989 def get_key_for_group(self, group_id, key=''):
990 """Get the cache key for a group by id."""

Calls 1

_get_key_forMethod · 0.95