mirror of
https://github.com/avatao-content/test-tutorial-framework
synced 2024-12-05 02:11:32 +00:00
Move message queue logic to backend
This commit is contained in:
parent
88e1818c86
commit
9404c86de7
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user