https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=32736

David Nind <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Text to go in the|                            |Adds an --all-queues option
      release notes|                            |to the koha-worker package
                   |                            |command. This lets you
                   |                            |perform actions (such as
                   |                            |start, stop, restart, and
                   |                            |status) on all defined
                   |                            |queues (currently only
                   |                            |'default' and 'long_tasks')
                   |                            |with one command.

--- Comment #13 from David Nind <[email protected]> ---
Testing notes (using KTD):

1. After applying the patch, I ran reset_all

2. Running koha-worker --help now shows the new options

3. I tested some of the options, and they all seemed to work okay for me:
   - sudo koha-worker --stop --all-queues kohadev
   - sudo koha-worker --status kohadev
   - sudo koha-worker --status --all-queues kohadev
   - sudo koha-worker --start --queue default kohadev
   - sudo koha-worker --status --all-queues kohadev
   - sudo koha-worker --start --all-queues kohadev
   - sudo koha-worker --start --all-queues kohadev
   - sudo koha-worker --restart --all-queues kohadev
   - sudo koha-worker --stop --queue long_tasks kohadev


For reference, the updated help with the new --all-queues option:

koha-worker

This script lets you manage the worker daemon for your Koha instances.

Usage:
koha-worker [--start|--stop|--restart] [--queue queue_name|--all-queues]
[--quiet|-q] instancename1 [instancename2...]
koha-worker --status instancename1 [instancename2...]
koha-worker -h|--help

    --start               Start the worker daemon for the specified instances
    --stop                Stop the worker daemon for the specified instances
    --restart             Restart the worker daemon for the specified instances
    --queue               Specify the queue/worker to perform the action on -
'default' is
                          used if not specified (unless --all-queues is passed)
                          current queues are: default, long_tasks
    --all-queues          Perform the action on all defined queues
    --status              Show the status of the worker for the specified
instances
    --quiet|-q            Make the script quiet about non existent instance
names
                          (useful for calling from another scripts).
    --help|-h             Display this help message

Note: There used to be a queue called elastic_index, but since the introduction
of koha-es-indexer this queue should not be active.

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to