queue_workers: Fix confusing --queue_type argument name.

This commit is contained in:
Tim Abbott
2017-02-22 00:23:07 -08:00
parent 2768be7fdf
commit aa6567ee34
3 changed files with 3 additions and 3 deletions

View File

@@ -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()

View File

@@ -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)

View File

@@ -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