Commit 64e8e905 authored by Pavel Kuzmenko's avatar Pavel Kuzmenko
Browse files

feat(deploy): add windows compatibility signal

parent 25690203
import asyncio
import logging
import sys
import signal
from typing import Any
......@@ -145,8 +146,9 @@ class ApplicationWrapper:
pass
def run_all(self):
self.handle_signal(signal.SIGTERM, _raise_graceful_exit)
self.handle_signal(signal.SIGHUP, _raise_graceful_exit)
if sys.platform != 'win32':
self.handle_signal(signal.SIGTERM, _raise_graceful_exit)
self.handle_signal(signal.SIGHUP, _raise_graceful_exit)
try:
LOG.info('Start serving')
self.loop.run_until_complete(asyncio.gather(*[app.initialize() for app in self.apps]))
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment