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

Method get_key_for_task

celery/backends/base.py:1246–1250  ·  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

1244 pass
1245
1246 def get_key_for_task(self, task_id, key=''):
1247 """Get the cache key for a task by id."""
1248 if not task_id:
1249 raise ValueError(f'task_id must not be empty. Got {task_id} instead.')
1250 return self._get_key_for(self.task_keyprefix, task_id, key)
1251
1252 def get_key_for_group(self, group_id, key=''):
1253 """Get the cache key for a group by id."""

Calls 1

_get_key_forMethod · 0.95