File tree Expand file tree Collapse file tree 1 file changed +3
-7
lines changed
services/storage/src/simcore_service_storage/modules/celery Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Original file line number Diff line number Diff line change 2121 "revoked" ,
2222)
2323_CELERY_TASK_META_PREFIX : Final [str ] = "celery-task-meta-"
24- _CELERY_TASK_ID_PREFIX : Final [str ] = "celery"
2524_CELERY_STATES_MAPPING : Final [dict [str , TaskState ]] = {
2625 "PENDING" : TaskState .PENDING ,
2726 "STARTED" : TaskState .PENDING ,
3332
3433
3534def _build_context_prefix (task_context : TaskContext ) -> list [str ]:
36- return [
37- _CELERY_TASK_ID_PREFIX ,
38- * [f"{ task_context [key ]} " for key in sorted (task_context )],
39- ]
35+ return [f"{ task_context [key ]} " for key in sorted (task_context )]
4036
4137
4238def _build_task_id_prefix (task_context : TaskContext ) -> str :
43- return ":: " .join (_build_context_prefix (task_context ))
39+ return ":" .join (_build_context_prefix (task_context ))
4440
4541
4642def _build_task_id (task_context : TaskContext , task_uuid : TaskUUID ) -> TaskID :
47- return ":: " .join ([_build_task_id_prefix (task_context ), f"{ task_uuid } " ])
43+ return ":" .join ([_build_task_id_prefix (task_context ), f"{ task_uuid } " ])
4844
4945
5046class CeleryTaskQueueClient :
You can’t perform that action at this time.
0 commit comments