From a02b34aeaa8683de0fcd612d39b6528900a92aac Mon Sep 17 00:00:00 2001 From: khushal Date: Wed, 1 Jan 2025 09:44:36 +0000 Subject: [PATCH] (20250101) Tick-In Kafka (Stateful) ready to test. --- kill_tick_in.sh | 9 +++++++++ run_tick_in.sh | 10 ++++++++++ 2 files changed, 19 insertions(+) create mode 100644 kill_tick_in.sh create mode 100644 run_tick_in.sh diff --git a/kill_tick_in.sh b/kill_tick_in.sh new file mode 100644 index 0000000..ab228ed --- /dev/null +++ b/kill_tick_in.sh @@ -0,0 +1,9 @@ +#!/bin/bash + +# Kill all the scripts: +echo "Killing the script." +pkill -9 -f "$(pwd)/background/finstitutions/trading/to_kafka.py" + +# All done: +echo "Done!" +exit 0 \ No newline at end of file diff --git a/run_tick_in.sh b/run_tick_in.sh new file mode 100644 index 0000000..4a31fe0 --- /dev/null +++ b/run_tick_in.sh @@ -0,0 +1,10 @@ +#!/bin/bash + +# Use this to run the microservice without any docker setup. +source .venv/bin/activate +python3 "$(pwd)/background/finstitutions/trading/to_kafka.py" --script-id "kps_dev_gjgptnfnZ1" --token-key "6766805c466e61b446bf91d5" & +deactivate + +# All done: +echo "Done!" +exit 0 \ No newline at end of file