Set TTL >> max await + increase max await from 1s to 2s (#15892)

- set TTL >> max await
- increase max await from 1s to 2s
This commit is contained in:
martmull
2025-11-18 16:25:04 +01:00
committed by GitHub
parent 47ea2b53d3
commit ee648197df
@@ -26,7 +26,7 @@ export class CacheLockService {
key: string,
options?: CacheLockOptions,
): Promise<T> {
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);