Commit 25690203 authored by Pavel Kuzmenko's avatar Pavel Kuzmenko
Browse files

feat(deploy): add windows compatibility

parent 9f57f793
......@@ -138,7 +138,11 @@ class ApplicationWrapper:
)
def handle_signal(self, _signal_name, callback):
try:
self.loop.add_signal_handler(_signal_name, callback)
except NotImplementedError:
# add_signal_handler is not implemented on Windows
pass
def run_all(self):
self.handle_signal(signal.SIGTERM, _raise_graceful_exit)
......
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