From c5a74fc287baa592270e4153b4b5f4a4c906ff27 Mon Sep 17 00:00:00 2001 From: Lei PAN Date: Thu, 29 Aug 2024 23:26:49 +0200 Subject: [PATCH] use 75 threads --- scheduler_test.py | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/scheduler_test.py b/scheduler_test.py index 656a5b3..220165f 100644 --- a/scheduler_test.py +++ b/scheduler_test.py @@ -6,20 +6,18 @@ from request_sender_test import send_request_for_file_list def start_book_appointment(): - file_list = ['~/Desktop/contact_list_2024-05-27.xlsx', - '~/Desktop/contact_list_2024-05-25.xlsx', - '~/Desktop/contact_list_2024-05-24.xlsx', - '~/Desktop/contact_list_2024-05-23.xlsx', - '~/Desktop/contact_list_2024-05-22.xlsx'] - send_request_for_file_list(file_list=file_list, thread_number=40, - data_queue_name=MORNING_DATA_CACHE) + file_list = ['~/Desktop/contact_list_2024-08-28.xlsx', + '~/Desktop/contact_list_all.xlsx', + '~/Desktop/contact_list_2024-05-27.xlsx'] + send_request_for_file_list(file_list=file_list, thread_number=75, + data_queue_name=MORNING_DATA_CACHE, stop_at_hour=11, stop_at_mins=30) def start_check_results_job(sched): sched.add_job(start_book_appointment, 'cron', day_of_week='mon-sat', hour='10', minute='30', misfire_grace_time=10, - second='20', timezone='Europe/Paris', max_instances=1, args=[]) + second='10', timezone='Europe/Paris', max_instances=1, args=[]) def config_and_start_jobs():