Get the cache key for a task by id.
(self, task_id, key='')
| 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.""" |