Bug 39961: Make `koha-create` start all queues

Taking advantage of the `get_worker_queues` function introduced in bug
31124, this patch makes `koha-create` start all defined queues.

To test:
1. Run:
   $ ktd --shell
  k$ sudo -s
  k$ koha-create --create-db test
=> FAIL: No mention of `long_tasks`
2. Apply 31124 and then this patch
3. Run:
  k$ cp debian/scripts/koha-functions.sh \
        /usr/share/koha/bin/koha-functions.sh
  k$ debian/scripts/koha-create --create-db test1
=> SUCCESS: `long_tasks` worker is started
4. Sign off :-D

Signed-off-by: Magnus Enger <magnus@libriotech.no>

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
(cherry picked from commit 45089704fa)
Signed-off-by: Paul Derscheid <paul.derscheid@lmscloud.de>
This commit is contained in:
Tomas Cohen Arazi 2025-05-21 16:40:40 -03:00 committed by Paul Derscheid
parent 86fd02bd1a
commit 5a6ad66117
No known key found for this signature in database
GPG Key ID: C25F9FD44CED595B
1 changed files with 4 additions and 2 deletions

View File

@ -908,8 +908,10 @@ then
# Start Zebra.
koha-zebra --start "$name"
# Start worker
koha-worker --start "$name"
# Start workers
for queue in $(get_worker_queues); do
koha-worker --queue $queue --start "$name"
done
if [ "$USE_INDEXER_DAEMON" = "yes" ]; then
# Start Indexer daemon