From 766b196a805c37e4208cc0d5dd4d2667cea89973 Mon Sep 17 00:00:00 2001 From: khushal Date: Sat, 18 Jan 2025 13:14:01 +0530 Subject: [PATCH] (20250118) Safety Push. --- kill_mail_sync.sh | 9 +++++++++ run_mail_sync.sh | 10 ++++++++++ 2 files changed, 19 insertions(+) create mode 100644 kill_mail_sync.sh create mode 100644 run_mail_sync.sh diff --git a/kill_mail_sync.sh b/kill_mail_sync.sh new file mode 100644 index 0000000..d6d6db8 --- /dev/null +++ b/kill_mail_sync.sh @@ -0,0 +1,9 @@ +#!/bin/bash + +# Kill all the scripts: +echo "Killing the script." +pkill -9 -f "$(pwd)/background/finstitutions/trading/tick_in_stateful.py" + +# All done: +echo "Done!" +exit 0 \ No newline at end of file diff --git a/run_mail_sync.sh b/run_mail_sync.sh new file mode 100644 index 0000000..ea20224 --- /dev/null +++ b/run_mail_sync.sh @@ -0,0 +1,10 @@ +#!/bin/bash + +# Use this to run the microservice without any docker setup. +source .venv/bin/activate +python3 "$(pwd)/cron/message/mail/auto_sync.py" --script-id "kps_cnv_KBC3MoaU" --batch-size 25 --debug & +deactivate + +# All done: +echo "Done!" +exit 0 \ No newline at end of file