mirror of
https://github.com/zulip/zulip.git
synced 2025-11-09 16:37:23 +00:00
queue_processors: Pass the worker_num down into the class.
This commit is contained in:
committed by
Tim Abbott
parent
952291e712
commit
572fbfe114
@@ -101,7 +101,7 @@ class Command(BaseCommand):
|
||||
|
||||
logger.info("Worker %d connecting to queue %s", worker_num, queue_name)
|
||||
with log_and_exit_if_exception(logger, queue_name, threaded=False):
|
||||
worker = get_worker(queue_name)
|
||||
worker = get_worker(queue_name, worker_num=worker_num)
|
||||
with configure_scope() as scope:
|
||||
scope.set_tag("queue_worker", queue_name)
|
||||
scope.set_tag("worker_num", worker_num)
|
||||
|
||||
Reference in New Issue
Block a user