From e35cc678e3709c93043f1e5e3bc9994e49574489 Mon Sep 17 00:00:00 2001 From: nechama-krigsman <139783423+nechama-krigsman@users.noreply.github.com> Date: Wed, 27 Nov 2024 14:18:20 -0500 Subject: [PATCH] Revert "10553: Add retry when entity is locked;" --- web-api/src/business/useCaseHelper/acquireLock.ts | 10 +++------- .../user/updateUserContactInformationInteractor.ts | 1 - 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/web-api/src/business/useCaseHelper/acquireLock.ts b/web-api/src/business/useCaseHelper/acquireLock.ts index 3b9c281aedb..394a1fef98a 100644 --- a/web-api/src/business/useCaseHelper/acquireLock.ts +++ b/web-api/src/business/useCaseHelper/acquireLock.ts @@ -143,8 +143,8 @@ export function withLocking( applicationContext: any, options: any, ) => - | Promise<{ identifiers: string[]; ttl?: number; retries?: number }> - | { identifiers: string[]; ttl?: number; retries?: number }, + | Promise<{ identifiers: string[]; ttl?: number }> + | { identifiers: string[]; ttl?: number }, onLockError?: TOnLockError, ): ( applicationContext: any, @@ -156,10 +156,7 @@ export function withLocking( options: InteractorInput, authorizedUser: UnknownAuthUser, ) { - const { identifiers, retries, ttl } = await getLockInfo( - applicationContext, - options, - ); + const { identifiers, ttl } = await getLockInfo(applicationContext, options); await acquireLock({ applicationContext, @@ -167,7 +164,6 @@ export function withLocking( identifiers, onLockError, options, - retries, ttl, }); diff --git a/web-api/src/business/useCases/user/updateUserContactInformationInteractor.ts b/web-api/src/business/useCases/user/updateUserContactInformationInteractor.ts index 699cf4e4aae..0994799fb13 100644 --- a/web-api/src/business/useCases/user/updateUserContactInformationInteractor.ts +++ b/web-api/src/business/useCases/user/updateUserContactInformationInteractor.ts @@ -207,7 +207,6 @@ export const determineEntitiesToLock = async ( return { identifiers: cases?.map(item => `case|${item.docketNumber}`), - retries: 10, ttl: 900, }; };