From 59aad227b498d3b2599a1122c4fac1dce191f7d6 Mon Sep 17 00:00:00 2001 From: Mark Cottman-Fields Date: Tue, 3 Sep 2024 14:08:46 +1000 Subject: [PATCH] reduce agenda queue mongodb query issues Running one import at a time should help to reduce the impact on the running ReDBox webapp. --- test/resources/config/agendaQueue.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/test/resources/config/agendaQueue.js b/test/resources/config/agendaQueue.js index be5fa15..2a79514 100644 --- a/test/resources/config/agendaQueue.js +++ b/test/resources/config/agendaQueue.js @@ -5,8 +5,8 @@ module.exports.agendaQueue = { fnName: 'solrsearchservice.solrAddOrUpdate', options: { lockLifetime: 3 * 1000, // 3 seconds max runtime - lockLimit: 10, - concurrency: 10 + lockLimit: 1, + concurrency: 1 } }, { @@ -14,8 +14,8 @@ module.exports.agendaQueue = { fnName: 'solrsearchservice.solrDelete', options: { lockLifetime: 3 * 1000, // 3 seconds max runtime - lockLimit: 10, - concurrency: 10 + lockLimit: 1, + concurrency: 1 } }, { @@ -23,8 +23,8 @@ module.exports.agendaQueue = { fnName: 'recordsservice.storeRecordAudit', options: { lockLifetime: 30 * 1000, - lockLimit: 10, - concurrency: 10 + lockLimit: 1, + concurrency: 1 } }, {