Bug 32736: (follow-up) Make scripts using koha-worker use --all-queues

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
This commit is contained in:
Tomas Cohen Arazi 2025-05-21 18:11:20 -03:00 committed by Lucas Gass
parent dd11756ffc
commit e71ae37c95
No known key found for this signature in database
GPG Key ID: 60B447398B0D36CA
3 changed files with 3 additions and 13 deletions

View File

@ -909,9 +909,7 @@ then
koha-zebra --start "$name"
# Start workers
for queue in $(get_worker_queues); do
koha-worker --queue $queue --start "$name"
done
koha-worker --all-queues --start "$name"
if [ "$USE_INDEXER_DAEMON" = "yes" ]; then
# Start Indexer daemon

View File

@ -72,11 +72,7 @@ do
if is_indexer_running $name; then
koha-indexer --stop $name
fi
for queue in $(get_worker_queues); do
if is_worker_running $name $queue; then
koha-worker --queue $queue --stop $name
fi
done
koha-worker --all-queues --stop $name || /bin/true
elif [ "$RET" = 2 ]; then
warn "Error: Apache configuration file not present for instance $name."
else

View File

@ -82,11 +82,7 @@ eof
koha-indexer --stop $name || /bin/true
fi
# Stop the worker daemons if needed
for queue in $(get_worker_queues); do
if is_worker_running $name $queue; then
koha-worker --queue $queue --stop $name|| /bin/true
fi
done
koha-worker --all-queues --stop $name || /bin/true
# Stop the Plack server if needed
if is_plack_running $name; then
koha-plack --stop $name || /bin/true