From b8f6da6189010c418adf6c9608ecd424ec6071a5 Mon Sep 17 00:00:00 2001 From: khushal Date: Thu, 2 Jan 2025 12:41:43 +0000 Subject: [PATCH] (20250102) Tick-Out ready for test on production. This is the SocketIO server for trading ticks. --- kill_sio.sh | 10 ---------- kill_tick_out.sh | 9 +++++++++ run_sio.sh | 11 ----------- run_tick_out.sh | 10 ++++++++++ 4 files changed, 19 insertions(+), 21 deletions(-) delete mode 100644 kill_sio.sh create mode 100644 kill_tick_out.sh delete mode 100644 run_sio.sh create mode 100644 run_tick_out.sh diff --git a/kill_sio.sh b/kill_sio.sh deleted file mode 100644 index fc73e28..0000000 --- a/kill_sio.sh +++ /dev/null @@ -1,10 +0,0 @@ -#!/bin/bash - -# Kill all the scripts: -echo "Killing the script." -pkill -9 -f "$(pwd)/playground/socketio/to_kafka.py" -pkill -9 -f "$(pwd)/wsio/finstitutions/trading/main.py" - -# All done: -echo "Done!" -exit 0 \ No newline at end of file diff --git a/kill_tick_out.sh b/kill_tick_out.sh new file mode 100644 index 0000000..5a80196 --- /dev/null +++ b/kill_tick_out.sh @@ -0,0 +1,9 @@ +#!/bin/bash + +# Kill all the scripts: +echo "Killing the script." +pkill -9 -f "$(pwd)/wsio/finstitutions/trading/tick_out.py" + +# All done: +echo "Done!" +exit 0 \ No newline at end of file diff --git a/run_sio.sh b/run_sio.sh deleted file mode 100644 index 6e5291a..0000000 --- a/run_sio.sh +++ /dev/null @@ -1,11 +0,0 @@ -#!/bin/bash - -# Use this to run the microservice without any docker setup. -source .venv/bin/activate -pkill -9 -f "$(pwd)/playground/socketio/to_kafka.py" -python3 "$(pwd)/wsio/finstitutions/trading/main.py" --host "0.0.0.0" --port 5214 --script-id "kps_cnv_KBC3MoaU" & -deactivate - -# All done: -echo "Done!" -exit 0 \ No newline at end of file diff --git a/run_tick_out.sh b/run_tick_out.sh new file mode 100644 index 0000000..78379d7 --- /dev/null +++ b/run_tick_out.sh @@ -0,0 +1,10 @@ +#!/bin/bash + +# Use this to run the microservice without any docker setup. +source .venv/bin/activate +python3 "$(pwd)/wsio/finstitutions/trading/tick_out.py" --workers 2 --host "0.0.0.0" --port 5214 --script-id "kps_prod_nFCaozwnVP" & +deactivate + +# All done: +echo "Done!" +exit 0 \ No newline at end of file