Skip to content

Commit 4a01d04

Browse files
committed
rename
1 parent 691eee0 commit 4a01d04

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

packages/service-library/src/servicelib/project_lock.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
R = TypeVar("R")
2222

2323

24-
def with_locked_project(
24+
def with_project_locked(
2525
redis_client: RedisClientSDK | Callable[..., RedisClientSDK],
2626
*,
2727
project_uuid: str | ProjectID,

services/efs-guardian/src/simcore_service_efs_guardian/services/background_tasks.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
from models_library.projects import ProjectID
66
from models_library.projects_state import ProjectStatus
77
from servicelib.logging_utils import log_context
8-
from servicelib.project_lock import with_locked_project
8+
from servicelib.project_lock import with_project_locked
99
from simcore_postgres_database.utils_projects import (
1010
DBProjectNotFoundError,
1111
ProjectsRepo,
@@ -22,7 +22,7 @@ async def _remove_data_with_lock(app: FastAPI, project_id: ProjectID) -> None:
2222
# Decorate a new function that will call the necessary coroutine
2323
efs_manager: EfsManager = app.state.efs_manager
2424

25-
@with_locked_project(
25+
@with_project_locked(
2626
get_redis_lock_client(app),
2727
project_uuid=project_id,
2828
status=ProjectStatus.MAINTAINING,

services/web/server/src/simcore_service_webserver/projects/lock.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
from models_library.projects import ProjectID
77
from models_library.projects_access import Owner
88
from models_library.projects_state import ProjectLocked, ProjectStatus
9-
from servicelib.project_lock import PROJECT_REDIS_LOCK_KEY, with_locked_project
9+
from servicelib.project_lock import PROJECT_REDIS_LOCK_KEY, with_project_locked
1010

1111
from ..redis import get_redis_lock_manager_client, get_redis_lock_manager_client_sdk
1212
from ..users.api import FullNameDict
@@ -28,7 +28,7 @@ def with_locked_project_from_app(
2828
def _decorator(
2929
func: Callable[P, Coroutine[Any, Any, R]],
3030
) -> Callable[P, Coroutine[Any, Any, R]]:
31-
@with_locked_project(
31+
@with_project_locked(
3232
get_redis_lock_manager_client_sdk(app),
3333
project_uuid=project_uuid,
3434
status=status,

0 commit comments

Comments
 (0)