Skip to content

Commit

Permalink
Introduce DEFINITION_UPGRADE_DEQUEUE_BATCH_SIZE
Browse files Browse the repository at this point in the history
Introduced a new environment variable - DEFINITION_UPGRADE_DEQUEUE_BATCH_SIZE, used for setting up the number of messages to be dequeued per batch. A smaller quantity has also been designated as the default configuration.
  • Loading branch information
qtomlinson committed Dec 18, 2024
1 parent 06eecc5 commit 6345358
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion providers/upgrade/azureQueueConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const defaultOptions = {
config.get('DEFINITION_UPGRADE_QUEUE_CONNECTION_STRING') || config.get('HARVEST_AZBLOB_CONNECTION_STRING'),
queueName: config.get('DEFINITION_UPGRADE_QUEUE_NAME') || 'definitions-upgrade',
dequeueOptions: {
numOfMessages: 32,
numOfMessages: config.get('DEFINITION_UPGRADE_DEQUEUE_BATCH_SIZE') || 16,
visibilityTimeout: 10 * 60 // 10 min. The default value is 30 seconds.
}
}
Expand Down

0 comments on commit 6345358

Please sign in to comment.