mirror of
https://github.com/zulip/zulip.git
synced 2025-11-02 21:13:36 +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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user