[object Object]

← back to Exo

test for reconnect

15b5043d6ede96751b8b88ac959aad38c28ae891 · 2024-09-04 13:11:53 +0100 · Alex Cheema

Files touched

Diff

commit 15b5043d6ede96751b8b88ac959aad38c28ae891
Author: Alex Cheema <alexcheema123@gmail.com>
Date:   Wed Sep 4 13:11:53 2024 +0100

    test for reconnect
---
 test/reconnect.sh | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

diff --git a/test/reconnect.sh b/test/reconnect.sh
new file mode 100755
index 00000000..9aa80fc6
--- /dev/null
+++ b/test/reconnect.sh
@@ -0,0 +1,16 @@
+#!/bin/bash
+
+echo "Starting node 1"
+DEBUG_DISCOVERY=7 DEBUG=7 python3 main.py --node-id "node1" --listen-port 5678 --broadcast-port 5679 --chatgpt-api-port 8000 --chatgpt-api-response-timeout-secs 900 > output1.log 2>&1 &
+PID1=$!
+echo "Started node 1 PID: $PID1"
+echo "Starting node 2"
+DEBUG_DISCOVERY=7 DEBUG=7 python3 main.py --node-id "node2" --listen-port 5679 --broadcast-port 5678 --chatgpt-api-port 8001 --chatgpt-api-response-timeout-secs 900 > output2.log 2>&1 &
+PID2=$!
+echo "Started node 2 PID: $PID2"
+sleep 5
+kill $PID2
+sleep 5
+echo "Starting node 2 again..."
+DEBUG_DISCOVERY=7 DEBUG=7 python3 main.py --inference-engine <<parameters.inference_engine>> --node-id "node2" --listen-port 5679 --broadcast-port 5678 --chatgpt-api-port 8001 --chatgpt-api-response-timeout-secs 900 > output2.log 2>&1 &
+kill $PID1
\ No newline at end of file

← baf6efd3 cleaner discovery  ·  back to Exo  ·  fix UDPDiscovery params, create a new transport every time w 3dd81a1e →