Skip to content

Commit

Permalink
Merge pull request #5602 from ustaxcourt/revert-5599-10553-test-retries
Browse files Browse the repository at this point in the history
Revert "10553: Add retry when entity is locked;"
  • Loading branch information
cruzjone-flexion authored Nov 28, 2024
2 parents cf4be0d + e35cc67 commit 06c91d0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
10 changes: 3 additions & 7 deletions web-api/src/business/useCaseHelper/acquireLock.ts
Original file line number Diff line number Diff line change
Expand Up @@ -143,8 +143,8 @@ export function withLocking<InteractorInput, InteractorOutput>(
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,
Expand All @@ -156,18 +156,14 @@ export function withLocking<InteractorInput, InteractorOutput>(
options: InteractorInput,
authorizedUser: UnknownAuthUser,
) {
const { identifiers, retries, ttl } = await getLockInfo(
applicationContext,
options,
);
const { identifiers, ttl } = await getLockInfo(applicationContext, options);

await acquireLock({
applicationContext,
authorizedUser,
identifiers,
onLockError,
options,
retries,
ttl,
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,6 @@ export const determineEntitiesToLock = async (

return {
identifiers: cases?.map(item => `case|${item.docketNumber}`),
retries: 10,
ttl: 900,
};
};
Expand Down

0 comments on commit 06c91d0

Please sign in to comment.