Update lock parameters (#15901)

as title
This commit is contained in:
martmull
2025-11-18 16:40:42 +01:00
committed by GitHub
parent ee648197df
commit f131a86cc5
@@ -26,7 +26,7 @@ export class CacheLockService {
key: string,
options?: CacheLockOptions,
): Promise<T> {
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);