mirror of
https://github.com/zulip/zulip.git
synced 2025-10-26 01:24:02 +00:00
queue_workers: Fix confusing --queue_type argument name.
This commit is contained in:
@@ -18,7 +18,7 @@ from zerver.worker.queue_processors import get_active_worker_queues
|
||||
|
||||
if __name__ == "__main__":
|
||||
parser = argparse.ArgumentParser()
|
||||
parser.add_argument('--queue_type', action='store', dest='queue_type', default=None,
|
||||
parser.add_argument('--queue-type', action='store', dest='queue_type', default=None,
|
||||
help="Specify which types of queues to list")
|
||||
args = parser.parse_args()
|
||||
|
||||
|
||||
@@ -37,7 +37,7 @@ consumers = defaultdict(int) # type: Dict[str, int]
|
||||
|
||||
sys.path.append(os.path.join(os.path.dirname(os.path.dirname(os.path.dirname(__file__)))))
|
||||
from scripts.lib.zulip_tools import su_to_zulip
|
||||
queues = subprocess.check_output(['./scripts/lib/queue_workers.py', '--queue_type=consumer'],
|
||||
queues = subprocess.check_output(['./scripts/lib/queue_workers.py', '--queue-type=consumer'],
|
||||
universal_newlines=True,
|
||||
preexec_fn=su_to_zulip)
|
||||
|
||||
|
||||
@@ -103,7 +103,7 @@ echo; echo "Now running RabbitMQ consumer Nagios tests"; echo
|
||||
/home/zulip/deployments/current/scripts/nagios/check-rabbitmq-consumers
|
||||
|
||||
# Then, compute the list of all Django queue workers to run Nagios checks against
|
||||
consumer_list=$(/home/zulip/deployments/current/scripts/lib/queue_workers.py --queue_type=consumer)
|
||||
consumer_list=$(/home/zulip/deployments/current/scripts/lib/queue_workers.py --queue-type=consumer)
|
||||
for consumer in $consumer_list; do
|
||||
if ! /usr/lib/nagios/plugins/zulip_app_frontend/check_rabbitmq_consumers "$consumer"; then
|
||||
set +x
|
||||
|
||||
Reference in New Issue
Block a user