inveniosoftware / invenio-queues

Invenio module for managing message queues.
https://invenio-queues.readthedocs.io
MIT License
0 stars 14 forks source link

cli: add "--force" option #5

Closed slint closed 4 years ago

slint commented 5 years ago

To avoid errors like amqp.exceptions.NotFound: Queue.purge: (404) NOT_FOUND - no queue 'stats-record-view' in vhost '/', a --force could be added (similar to invenio index init --force), which would ignore errors.

This is especially useful for setup scripts, which have to "reset" the environment by cleaning up any existing fixtures.

Scenarios to check:

frankois commented 4 years ago
Command Comment
Declare configured queues not running :white_check_mark:
configured queues running :white_check_mark:
specific queue already running :white_check_mark:
partial state :white_check_mark:
Delete configured queues running :white_check_mark:
configured queues not running :white_check_mark:
specific queues not running :white_check_mark:
in partial state :white_check_mark:
Purge configured queues running :white_check_mark:
specific queues not running :x: amqp.exceptions.NotFound: Queue.purge: (404) NOT_FOUND - no queue 'stats-record-view' in vhost '/'
configured queues not running :x: =
in partial state :x: =
slint commented 4 years ago

Closed via #11