From f131a86cc5ef381743f458bf3d09bb7e734913ee Mon Sep 17 00:00:00 2001 From: martmull Date: Tue, 18 Nov 2025 16:40:42 +0100 Subject: [PATCH] Update lock parameters (#15901) as title --- .../src/engine/core-modules/cache-lock/cache-lock.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/twenty-server/src/engine/core-modules/cache-lock/cache-lock.service.ts b/packages/twenty-server/src/engine/core-modules/cache-lock/cache-lock.service.ts index 5cbb4f32b2..2a775415ca 100644 --- a/packages/twenty-server/src/engine/core-modules/cache-lock/cache-lock.service.ts +++ b/packages/twenty-server/src/engine/core-modules/cache-lock/cache-lock.service.ts @@ -26,7 +26,7 @@ export class CacheLockService { key: string, options?: CacheLockOptions, ): Promise { - const { ms = 50, maxRetries = 40, ttl = 10_000 } = options || {}; + const { ms = 100, maxRetries = 50, ttl = 5_500 } = options || {}; for (let attempt = 0; attempt < maxRetries; attempt++) { const acquired = await this.cacheStorageService.acquireLock(key, ttl);