mirror of
https://github.com/zulip/zulip.git
synced 2025-10-27 01:53:59 +00:00
run-dev-queue-processors: Remove
As of #367, `tools/run-dev-queue-processors` has evolved into nothing more than an unnecessarily elaborate wrapper around `manage.py process_queue --all`. Remove it (mostly to make it marginally easier to Tab-complete `tools/run-dev.py`, if I’m being honest). Signed-off-by: Anders Kaseorg <anders@zulipchat.com>
This commit is contained in:
committed by
Tim Abbott
parent
bc430909af
commit
11f18042fe
@@ -1,22 +0,0 @@
|
|||||||
#!/usr/bin/env python3
|
|
||||||
|
|
||||||
# This script is only meant to be run from run-dev.py, which sets up the
|
|
||||||
# environment correctly and passes the correct arguments for manage.py. It is a
|
|
||||||
# separate script so that the import from zerver.worker.queue_processors (which
|
|
||||||
# is slow) can be done in parallel with the rest of the work in bringing up the
|
|
||||||
# dev server.
|
|
||||||
import sys
|
|
||||||
import os
|
|
||||||
import subprocess
|
|
||||||
|
|
||||||
# check for the venv
|
|
||||||
from lib import sanity_check
|
|
||||||
sanity_check.check_venv(__file__)
|
|
||||||
|
|
||||||
import django
|
|
||||||
sys.path.append(os.path.join(os.path.dirname(__file__), '..'))
|
|
||||||
django.setup()
|
|
||||||
|
|
||||||
args = sys.argv[1:]
|
|
||||||
subprocess.Popen(['./manage.py', 'process_queue', '--all'] + args,
|
|
||||||
stderr=subprocess.STDOUT)
|
|
||||||
@@ -148,7 +148,7 @@ cmds = [['./manage.py', 'runserver'] +
|
|||||||
manage_args + runserver_args + ['127.0.0.1:%d' % (django_port,)],
|
manage_args + runserver_args + ['127.0.0.1:%d' % (django_port,)],
|
||||||
['env', 'PYTHONUNBUFFERED=1', './manage.py', 'runtornado'] +
|
['env', 'PYTHONUNBUFFERED=1', './manage.py', 'runtornado'] +
|
||||||
manage_args + ['127.0.0.1:%d' % (tornado_port,)],
|
manage_args + ['127.0.0.1:%d' % (tornado_port,)],
|
||||||
['./tools/run-dev-queue-processors'] + manage_args,
|
['./manage.py', 'process_queue', '--all'] + manage_args,
|
||||||
['env', 'PGHOST=127.0.0.1', # Force password authentication using .pgpass
|
['env', 'PGHOST=127.0.0.1', # Force password authentication using .pgpass
|
||||||
'./puppet/zulip/files/postgresql/process_fts_updates'],
|
'./puppet/zulip/files/postgresql/process_fts_updates'],
|
||||||
['./manage.py', 'deliver_scheduled_messages'],
|
['./manage.py', 'deliver_scheduled_messages'],
|
||||||
|
|||||||
Reference in New Issue
Block a user