mirror of
https://github.com/zulip/zulip.git
synced 2025-11-09 16:37:23 +00:00
process_queue: Add missing type annotation.
This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
from __future__ import absolute_import
|
from __future__ import absolute_import
|
||||||
|
|
||||||
|
from types import FrameType
|
||||||
from typing import Any
|
from typing import Any
|
||||||
|
|
||||||
from argparse import ArgumentParser
|
from argparse import ArgumentParser
|
||||||
@@ -51,6 +52,7 @@ class Command(BaseCommand):
|
|||||||
worker.setup()
|
worker.setup()
|
||||||
|
|
||||||
def signal_handler(signal, frame):
|
def signal_handler(signal, frame):
|
||||||
|
# type: (int, FrameType) -> None
|
||||||
logger.info("Worker %d disconnecting from queue %s" % (worker_num, queue_name))
|
logger.info("Worker %d disconnecting from queue %s" % (worker_num, queue_name))
|
||||||
worker.stop()
|
worker.stop()
|
||||||
sys.exit(0)
|
sys.exit(0)
|
||||||
|
|||||||
Reference in New Issue
Block a user