Skip to content

Commit dcd9da3

Browse files
fix typecheck
1 parent e7f3fa2 commit dcd9da3

File tree

1 file changed

+2
-2
lines changed
  • services/storage/src/simcore_service_storage/modules/celery

1 file changed

+2
-2
lines changed

services/storage/src/simcore_service_storage/modules/celery/client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
_logger = logging.getLogger(__name__)
1414

1515
_CELERY_TASK_META_PREFIX = "celery-task-meta-"
16-
_PREFIX: Final[str] = "ct"
16+
_PREFIX: Final[str] = "ct" # short for celery task, not Catania
1717

1818

1919
def _build_parts_prefix(name: str, task_id_parts: TaskIDParts) -> list[str]:
@@ -83,7 +83,7 @@ def _get_completed_task_ids(
8383
)
8484
redis = self._celery_app.backend.client
8585
if hasattr(redis, "keys") and (keys := redis.keys(search_key)):
86-
return [f"{key}".lstrip(_CELERY_TASK_META_PREFIX) for key in keys]
86+
return [f"{key}".removeprefix(_CELERY_TASK_META_PREFIX) for key in keys]
8787
return []
8888

8989
@make_async()

0 commit comments

Comments
 (0)