From 7dc5c8b6680f1d0f759d8496ad189b9d3361d044 Mon Sep 17 00:00:00 2001 From: Tomas Cohen Arazi Date: Wed, 21 May 2025 16:40:40 -0300 Subject: [PATCH] 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 --- debian/scripts/koha-create | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/debian/scripts/koha-create b/debian/scripts/koha-create index c0272a526e8..1f32d5eee84 100755 --- a/debian/scripts/koha-create +++ b/debian/scripts/koha-create @@ -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 -- 2.49.0