mirror of https://github.com/zulip/zulip.git
process_queue: Rename Threaded_worker to ThreadedWorker.
Threaded_worker doesn't fit the python naming convention we rely on.
This commit is contained in:
parent
3688ff38bd
commit
2d3d0f862a
|
@ -75,7 +75,7 @@ class Command(BaseCommand):
|
||||||
if not settings.DEVELOPMENT:
|
if not settings.DEVELOPMENT:
|
||||||
logger.info("launching queue worker thread " + queue_name)
|
logger.info("launching queue worker thread " + queue_name)
|
||||||
cnt += 1
|
cnt += 1
|
||||||
td = Threaded_worker(queue_name, logger)
|
td = ThreadedWorker(queue_name, logger)
|
||||||
td.start()
|
td.start()
|
||||||
assert len(queues) == cnt
|
assert len(queues) == cnt
|
||||||
logger.info("%d queue worker threads were launched", cnt)
|
logger.info("%d queue worker threads were launched", cnt)
|
||||||
|
@ -111,7 +111,7 @@ class Command(BaseCommand):
|
||||||
worker.start()
|
worker.start()
|
||||||
|
|
||||||
|
|
||||||
class Threaded_worker(threading.Thread):
|
class ThreadedWorker(threading.Thread):
|
||||||
def __init__(self, queue_name: str, logger: logging.Logger) -> None:
|
def __init__(self, queue_name: str, logger: logging.Logger) -> None:
|
||||||
threading.Thread.__init__(self)
|
threading.Thread.__init__(self)
|
||||||
self.logger = logger
|
self.logger = logger
|
||||||
|
|
Loading…
Reference in New Issue