add scheduler.py
This commit is contained in:
+7
-5
@@ -69,11 +69,9 @@ def send_appointment_request(message_queue_name, _contact_list):
|
||||
receiver.run()
|
||||
|
||||
|
||||
def start(contact_list_file):
|
||||
pass
|
||||
|
||||
if __name__ == '__main__':
|
||||
contacts_file_path = '~/Desktop/contact_list_2024-04-05-2.xlsx'
|
||||
def start_send_requests():
|
||||
print("start send requests")
|
||||
contacts_file_path = '~/Desktop/contact_list_2024-04-06-2.xlsx'
|
||||
_contact_list = read_contacts(contacts_file_path)
|
||||
_contact_list_to_book = filter_contacts(_contact_list)
|
||||
_segment_number = 10
|
||||
@@ -87,3 +85,7 @@ if __name__ == '__main__':
|
||||
last_thread = _thread1
|
||||
_thread1.start()
|
||||
last_thread.join()
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
start_send_requests()
|
||||
|
||||
Reference in New Issue
Block a user