Merge branch 'feature/stop_at_hour' of bitbucket.org:panleicim/appointment_request into feature/stop_at_hour

This commit is contained in:
2024-08-05 15:37:51 +02:00
2 changed files with 3 additions and 2 deletions
+1
View File
@@ -89,6 +89,7 @@ def start_send_requests(thread_number, contact_list, data_queue_name=MORNING_DAT
def send_request_for_file_list(file_list: list, thread_number: int = 20, data_queue_name=MORNING_DATA_CACHE, def send_request_for_file_list(file_list: list, thread_number: int = 20, data_queue_name=MORNING_DATA_CACHE,
stop_at_hour=11, stop_at_mins=30): stop_at_hour=11, stop_at_mins=30):
logger.info("stop_at_hour is " + str(stop_at_hour) + " stop_at_mins is " + str(stop_at_mins))
for _file_path in file_list: for _file_path in file_list:
logger.info("send request for file: " + _file_path) logger.info("send request for file: " + _file_path)
_contact_list = read_contacts(_file_path) _contact_list = read_contacts(_file_path)
+2 -2
View File
@@ -17,8 +17,8 @@ def start_book_appointment():
'~/Desktop/contact_list_2024-06-20.xlsx', '~/Desktop/contact_list_2024-06-20.xlsx',
'~/Desktop/contact_list_2024-06-19.xlsx', '~/Desktop/contact_list_2024-06-19.xlsx',
'~/Desktop/contact_list_2024-05-27.xlsx'] '~/Desktop/contact_list_2024-05-27.xlsx']
send_request_for_file_list(file_list=file_list, thread_number=58, send_request_for_file_list(file_list=file_list, thread_number=60,
data_queue_name=MORNING_DATA_CACHE) data_queue_name=MORNING_DATA_CACHE, stop_at_hour=11, stop_at_mins=40)
def start_check_results_job(sched): def start_check_results_job(sched):