Merge branch 'master' into BUDI-8046/scim-logger

This commit is contained in:
Adria Navarro 2024-03-07 14:24:16 +01:00 committed by GitHub
commit 74f8c3fce8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 3 deletions

View File

@ -1,5 +1,5 @@
{ {
"version": "2.21.3", "version": "2.21.4",
"npmClient": "yarn", "npmClient": "yarn",
"packages": [ "packages": [
"packages/*", "packages/*",

View File

@ -9,12 +9,13 @@ interface ProcessDocMessage {
data: Record<string, any> data: Record<string, any>
} }
const PERSIST_MAX_ATTEMPTS = 100
export const docWritethroughProcessorQueue = createQueue<ProcessDocMessage>( export const docWritethroughProcessorQueue = createQueue<ProcessDocMessage>(
JobQueue.DOC_WRITETHROUGH_QUEUE, JobQueue.DOC_WRITETHROUGH_QUEUE,
{ {
jobOptions: { jobOptions: {
// We might have plenty of 409, we want to allow running almost infinitely attempts: PERSIST_MAX_ATTEMPTS,
attempts: Number.MAX_SAFE_INTEGER,
}, },
} }
) )