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