This repository was archived by the owner on Nov 1, 2024. It is now read-only.
LabGraph Monitor setting up Realtime connection #85
Unanswered
mark-nguyen1
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello all!
I am currently following the instructions to run the LabGraph monitor in real-time here: https://github.com/facebookresearch/labgraph/tree/main/extensions/prototypes/labgraph_monitor
Error
I have set up the application and the mock graphs seem to be working. However, when I try to connect the graph to real-time I am getting the error:
"RuntimeError: Task <Task pending name='Task-11462' coro=<WSAPIServerNode.ws_server_publisher() running at C:\Users\lolit\OneDrive\Desktop\LABGRAPH_PROJECT\labgraph\labgraph\websockets\ws_server\ws_api_node_server.py:125>> got Future attached to a different loop"
and also:
"- WS_SERVER_NODE: Raised an exception: RuntimeError("Task <Task pending name='Task-11462' coro=<WSAPIServerNode.ws_server_publisher() running at C:\Users\lolit\OneDrive\Desktop\LABGRAPH_PROJECT\labgraph\labgraph\websockets\ws_server\ws_api_node_server.py:125>> got Future attached to a different loop")"
To get to where I am at.
I first did the command "yarn start" on VSCode to open the LabGraph monitor on localHost3000. Then I open a split terminal on VSCode and ran the command "python extensions/yaml_support/labgraph_monitor/examples/labgraph_monitor_example.py" as instructed. So far so good here is what I see on the terminal where I ran the latter command:

Only once I get to http://localhost:3000/ and change the connection to real-time is when the error mentioned popped up.

Here is me being connected:
Additionally, the edges are not in real-time as the data are not consistently being updated.

For example, the data for random message edge is supposed to change/update, but it does not.
I am running python 3.8.10
Can anyone have any suggestions to connect LabGraph to run in real-time? Thank you in advance.
Here is a picture of the full message I get:

Beta Was this translation helpful? Give feedback.
All reactions