Summary: | koha-create doesn't start all queues | ||
---|---|---|---|
Product: | Koha | Reporter: | Tomás Cohen Arazi (tcohen) <tomascohen> |
Component: | Command-line Utilities | Assignee: | Tomás Cohen Arazi (tcohen) <tomascohen> |
Status: | Pushed to stable --- | QA Contact: | Marcel de Rooy <m.de.rooy> |
Severity: | minor | ||
Priority: | P5 - low | CC: | david, m.de.rooy, mtj, robin, tomascohen |
Version: | Main | ||
Hardware: | All | ||
OS: | All | ||
GIT URL: | Change sponsored?: | --- | |
Patch complexity: | Trivial patch | Documentation contact: | |
Documentation submission: | Text to go in the release notes: |
This fixes the koha-create and koha-disable package commands so that they start and stop all the background job worker queues (including long_tasks).
|
|
Version(s) released in: |
25.11.00,25.05.01
|
Circulation function: | |
Bug Depends on: | 31124 | ||
Bug Blocks: | |||
Attachments: |
Bug 39961: Make `koha-create` start all queues
Bug 39961: (follow-up) Make stop all queues Bug 39961: (follow-up) Make `koha-disable` stop all queues Bug 39961: Make `koha-create` start all queues Bug 39961: (follow-up) Make `koha-disable` stop all queues Bug 39961: Make `koha-create` start all queues Bug 39961: (follow-up) Make `koha-disable` stop all queues |
Description
Tomás Cohen Arazi (tcohen)
2025-05-21 19:37:38 UTC
Created attachment 182704 [details] [review] 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 Created attachment 182705 [details] [review] Bug 39961: (follow-up) Make stop all queues This patch applies the same logic to `koha-disable`. Created attachment 182706 [details] [review] Bug 39961: (follow-up) Make `koha-disable` stop all queues This patch applies the same logic to `koha-disable`. Created attachment 182716 [details] [review] 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> Created attachment 182717 [details] [review] Bug 39961: (follow-up) Make `koha-disable` stop all queues This patch applies the same logic to `koha-disable`. Signed-off-by: Magnus Enger <magnus@libriotech.no> Created attachment 183055 [details] [review] 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> Created attachment 183056 [details] [review] Bug 39961: (follow-up) Make `koha-disable` stop all queues This patch applies the same logic to `koha-disable`. Signed-off-by: Magnus Enger <magnus@libriotech.no> Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> Nice work everyone! Pushed to main for 25.11 Nice work everyone! Pushed to 25.05.x for 25.05.03 |