Merge pull request #10350 from Budibase/hotfix/budi-6877-unable-to-fully-release-the-lock-on

Hotfix - Increase writethrough cache timeout
This commit is contained in:
Martin McKeaveney 2023-04-20 09:39:04 +01:00 committed by GitHub
commit 120c25634f
1 changed files with 2 additions and 1 deletions

View File

@ -47,7 +47,7 @@ async function put(
type: LockType.TRY_ONCE, type: LockType.TRY_ONCE,
name: LockName.PERSIST_WRITETHROUGH, name: LockName.PERSIST_WRITETHROUGH,
resource: key, resource: key,
ttl: 1000, ttl: 15000,
}, },
async () => { async () => {
const writeDb = async (toWrite: any) => { const writeDb = async (toWrite: any) => {
@ -71,6 +71,7 @@ async function put(
} }
} }
) )
if (!lockResponse.executed) { if (!lockResponse.executed) {
logWarn(`Ignoring redlock conflict in write-through cache`) logWarn(`Ignoring redlock conflict in write-through cache`)
} }