Commit 2479c2df authored by Federico Sismondi's avatar Federico Sismondi
Browse files

delay message UI production to not overload GUI websocket / arctifacts visualization

parent 4f2c9d9d
Pipeline #2056 passed with stage
in 0 seconds
......@@ -662,6 +662,7 @@ def main():
# TODO implement a mechanism for not publish messages until previous one has been replied,
# how to handle the ui.user.request cancel command tho?
time.sleep(0.2)
if not queue_messages_request_to_ui.empty():
# get next request
request = queue_messages_request_to_ui.get()
......@@ -674,6 +675,7 @@ def main():
request_message=request,
requested_field_name_list=requested_fields,
)
time.sleep(0.2)
# get next message reply from UI
if not queue_messages_from_ui.empty():
......
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