From bba26c9184255935d49866a610959751edd93071 Mon Sep 17 00:00:00 2001 From: Adria Navarro Date: Thu, 7 Mar 2024 13:58:01 +0100 Subject: [PATCH 1/2] Change max attempts --- packages/backend-core/src/cache/docWritethrough.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/backend-core/src/cache/docWritethrough.ts b/packages/backend-core/src/cache/docWritethrough.ts index f76bf0be78..51018b2317 100644 --- a/packages/backend-core/src/cache/docWritethrough.ts +++ b/packages/backend-core/src/cache/docWritethrough.ts @@ -9,12 +9,13 @@ interface ProcessDocMessage { data: Record } +const PERSIST_MAX_ATTEMPTS = 100 + export const docWritethroughProcessorQueue = createQueue( JobQueue.DOC_WRITETHROUGH_QUEUE, { jobOptions: { - // We might have plenty of 409, we want to allow running almost infinitely - attempts: Number.MAX_SAFE_INTEGER, + attempts: PERSIST_MAX_ATTEMPTS, }, } ) From e812b3a8eb13cdd5b9d59c9a7c9e71d6d25f7e63 Mon Sep 17 00:00:00 2001 From: Budibase Staging Release Bot <> Date: Thu, 7 Mar 2024 13:14:32 +0000 Subject: [PATCH 2/2] Bump version to 2.21.4 --- lerna.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lerna.json b/lerna.json index a77a16a24e..a50794e91e 100644 --- a/lerna.json +++ b/lerna.json @@ -1,5 +1,5 @@ { - "version": "2.21.3", + "version": "2.21.4", "npmClient": "yarn", "packages": [ "packages/*",