Kill the training script if the viewer ports are conflicting with other processes (#352)

kills program if conflicting ports for the viewer
This commit is contained in:
Ethan Weber authored and GitHub committed 2022-09-07 12:32:31 -07:00
1 parent 512a51f714
commit 7aa6ca9948
4 files changed
+41 -4

No files matched your search

+1 -1
View File
@@ -12,7 +12,7 @@ def test_run_subprocess():
zmq_port = 6000 + 10 # don't use the default ports to avoid conflicting with current training jobs
websocket_port = 7007 + 10
print("Starting the viewer bridge server as a subprocess.")
run_viewer_bridge_server_as_subprocess(zmq_port, websocket_port)
run_viewer_bridge_server_as_subprocess(zmq_port, websocket_port, log_filename=None)
print("Started the viewer bridge server as a subprocess.")
# do something will the viewer bridge server runs
time.sleep(1)