Skip to content

Commit 6345358

Browse files
committed
Introduce DEFINITION_UPGRADE_DEQUEUE_BATCH_SIZE
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.
1 parent 06eecc5 commit 6345358

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

providers/upgrade/azureQueueConfig.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const defaultOptions = {
99
config.get('DEFINITION_UPGRADE_QUEUE_CONNECTION_STRING') || config.get('HARVEST_AZBLOB_CONNECTION_STRING'),
1010
queueName: config.get('DEFINITION_UPGRADE_QUEUE_NAME') || 'definitions-upgrade',
1111
dequeueOptions: {
12-
numOfMessages: 32,
12+
numOfMessages: config.get('DEFINITION_UPGRADE_DEQUEUE_BATCH_SIZE') || 16,
1313
visibilityTimeout: 10 * 60 // 10 min. The default value is 30 seconds.
1414
}
1515
}

0 commit comments

Comments
 (0)