From 9404c86de7d8ddb5a4caa16abd110938082a1299 Mon Sep 17 00:00:00 2001 From: "R. Richard" Date: Fri, 23 Aug 2019 16:18:58 +0200 Subject: [PATCH] Move message queue logic to backend --- solvable/src/event_handler_main.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/solvable/src/event_handler_main.py b/solvable/src/event_handler_main.py index 4b1bed4..363fae0 100644 --- a/solvable/src/event_handler_main.py +++ b/solvable/src/event_handler_main.py @@ -7,7 +7,7 @@ from tfw.fsm import YamlFSM from tfw.event_handlers import FSMAwareEventHandler, ControlEventHandler from tfw.components.ide import IdeHandler from tfw.components.terminal import TerminalHandler -from tfw.components.frontend import FrontendProxyHandler, ConsoleLogsHandler +from tfw.components.frontend import FrontendProxyHandler, ConsoleLogsHandler, MessageQueueHandler from tfw.components.process_management import ProcessHandler, ProcessLogHandler from tfw.components.fsm import FSMHandler from tfw.main import EventHandlerFactory, setup_logger, setup_signal_handlers @@ -57,6 +57,7 @@ def main(): ), event_handler_type=ControlEventHandler) # Proxies frontend API calls to frontend frontend_eh = eh_factory.build(FrontendProxyHandler(), event_handler_type=ControlEventHandler) + message_queue_eh = eh_factory.build(MessageQueueHandler(25), event_handler_type=ControlEventHandler) # Writes live logs to console on frontend console_logs_eh = eh_factory.build(ConsoleLogsHandler(stream='stdout'), event_handler_type=ControlEventHandler)