From ee648197df1347aa831a265dddc70a5fe8eb5782 Mon Sep 17 00:00:00 2001 From: martmull Date: Tue, 18 Nov 2025 16:25:04 +0100 Subject: [PATCH] Set TTL >> max await + increase max await from 1s to 2s (#15892) - set TTL >> max await - increase max await from 1s to 2s --- .../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 4e117cc385..5cbb4f32b2 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 = 20, ttl = 500 } = options || {}; + const { ms = 50, maxRetries = 40, ttl = 10_000 } = options || {}; for (let attempt = 0; attempt < maxRetries; attempt++) { const acquired = await this.cacheStorageService.acquireLock(key, ttl);