1
0
Fork 0
mirror of synced 2024-10-02 10:08:09 +13:00

Change max attempts

This commit is contained in:
Adria Navarro 2024-03-07 13:58:01 +01:00
parent d75ab4b46c
commit bba26c9184

View file

@ -9,12 +9,13 @@ interface ProcessDocMessage {
data: Record<string, any>
}
const PERSIST_MAX_ATTEMPTS = 100
export const docWritethroughProcessorQueue = createQueue<ProcessDocMessage>(
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,
},
}
)