Skip to content

Commit

Permalink
activate others
Browse files Browse the repository at this point in the history
  • Loading branch information
joofio committed Nov 25, 2024
1 parent d789419 commit 911947a
Showing 1 changed file with 38 additions and 37 deletions.
75 changes: 38 additions & 37 deletions mainv2.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
import socket
import time
import requests
import os
import json
import logging
import os
import socket
import time
from logging.handlers import RotatingFileHandler

import requests

# Define the directory and ensure it exists
log_directory = "logs"
if not os.path.exists(log_directory):
Expand Down Expand Up @@ -521,39 +522,39 @@ def check_website_status(url, body=None):

def main():
while True:
# try:
# chek_preprocessor_data(BUNDLES, LENSES, PATIENT_IDS, BASE_URL)
# except Exception as err:
# logger.debug(f"Error on function chek_preprocessor_data -> {err}")
# time.sleep(10)
# try:
# chek_all_lenses_data(BUNDLES, PATIENT_IDS, BASE_URL)
# except Exception as err:
# logger.debug(f"Error on function chek_all_lenses_data -> {err}")

# time.sleep(10)
# try:
# chek_all_preprocess_data(BUNDLES, PATIENT_IDS, BASE_URL)
# except Exception as err:
# logger.debug(f"Error on function chek_all_preprocess_data -> {err}")

# time.sleep(10)
# try:
# chek_all_prpcessor_with_post_data(BUNDLES, PATIENT_IDS, BASE_URL)
# except Exception as err:
# logger.debug(
# f"Error on function chek_all_prpcessor_with_post_data -> {err}"
# )

# time.sleep(10)
# try:
# chek_lenses_foralreadypreprocess_data(
# PREPROCBUNDLES, LENSES, PATIENT_IDS, BASE_URL
# )
# except Exception as err:
# logger.debug(
# f"Error on function chek_lenses_foralreadypreprocess_data -> {err}"
# )
try:
chek_preprocessor_data(BUNDLES, LENSES, PATIENT_IDS, BASE_URL)
except Exception as err:
logger.debug(f"Error on function chek_preprocessor_data -> {err}")
time.sleep(10)
try:
chek_all_lenses_data(BUNDLES, PATIENT_IDS, BASE_URL)
except Exception as err:
logger.debug(f"Error on function chek_all_lenses_data -> {err}")

time.sleep(10)
try:
chek_all_preprocess_data(BUNDLES, PATIENT_IDS, BASE_URL)
except Exception as err:
logger.debug(f"Error on function chek_all_preprocess_data -> {err}")

time.sleep(10)
try:
chek_all_prpcessor_with_post_data(BUNDLES, PATIENT_IDS, BASE_URL)
except Exception as err:
logger.debug(
f"Error on function chek_all_prpcessor_with_post_data -> {err}"
)

time.sleep(10)
try:
chek_lenses_foralreadypreprocess_data(
PREPROCBUNDLES, LENSES, PATIENT_IDS, BASE_URL
)
except Exception as err:
logger.debug(
f"Error on function chek_lenses_foralreadypreprocess_data -> {err}"
)

time.sleep(10)
try:
Expand Down

0 comments on commit 911947a

Please sign in to comment.