Bug 40890: Move fetching of batch size to within the instance loop

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
This commit is contained in:
Kyle M Hall 2025-11-03 14:38:27 -05:00 committed by Lucas Gass
parent 03aec74eb6
commit c5cb44a8e4
No known key found for this signature in database
GPG Key ID: 60B447398B0D36CA
1 changed files with 3 additions and 1 deletions

View File

@ -163,7 +163,7 @@ set_action()
op=""
quiet="no"
batch_size=$(get_es_indexer_batch_size ${name})
batch_size=10
# Read command line parameters
while [ $# -gt 0 ]; do
@ -208,6 +208,8 @@ if [ $# -gt 0 ]; then
worker_DAEMON="${KOHA_HOME}/${KOHA_BINDIR}/workers/es_indexer_daemon.pl"
export PERL5LIB
batch_size=$(get_es_indexer_batch_size ${name})
case $op in
"start")
start_es_indexer $name