service acout records updated

This commit is contained in:
2024-11-20 20:06:36 +03:00
parent 1291ac87e2
commit 6ad1ba7d62
14 changed files with 581 additions and 162 deletions

View File

@@ -129,4 +129,5 @@ def send_mail_to_users_that_have_received_email_from_banks():
print("Email is not sent")
send_mail_to_users_that_have_received_email_from_banks()
if __name__ == "__main__":
send_mail_to_users_that_have_received_email_from_banks()

View File

@@ -1,5 +1,5 @@
class Config:
IP_ADDRESS: str = "http://10.10.2.46:41575/internal/isbank/retreive"
# IP_ADDRESS: str = "http://10.10.2.46:41575/internal/isbank/retreive"
SERVICE_TIMING: int = 900 # 15 min
UNREAD_PATH: str = "/home/bank/isbank/unread/"

View File

@@ -22,6 +22,7 @@ RUN apt-get update && apt-get install -y cron
# 11:00 Istanbul Time (UTC+3) system time is 08:00 UTC
RUN echo "0 8 * * * /usr/local/bin/python /service_app_banks/app_mail_sender.py >> /var/log/cron.log 2>&1" > /tmp/crontab_list && crontab /tmp/crontab_list
RUN echo "*/15 * * * * /usr/local/bin/python /service_app_banks/isbank/main_single_thread.py >> /var/log/cron.log 2>&1" >> /tmp/crontab_list && crontab /tmp/crontab_list
RUN echo "*/15 * * * * /usr/local/bin/python " >> /tmp/crontab_list && crontab /tmp/crontab_list
#RUN echo /service_app_banks/crontab_to_write > /tmp/crontab_list
#RUN crontab /tmp/crontab_list