use 25 segments
This commit is contained in:
@@ -12,9 +12,6 @@ from utiles import is_time_between
|
||||
from utils.AppLogging import init_logger
|
||||
from workers.proxies_constants import MOBILE_PROXY_LIST_FR
|
||||
|
||||
IPFIY = 'http://api.ipify.org'
|
||||
NGROK_TEST = "https://bcc6-193-164-156-53.ngrok-free.app"
|
||||
|
||||
|
||||
def is_already_sent(contact: ContactPojo) -> bool:
|
||||
already_sent_contacts = MONGO_STORE_MANAGER.get_all_successful_items_for_day()
|
||||
@@ -69,7 +66,7 @@ def send_appointment_request(message_queue_name, _contact_list):
|
||||
receiver.run()
|
||||
|
||||
|
||||
def start_send_requests(thread_number=5, file_path='~/Desktop/24_04_to_test.xlsx'):
|
||||
def start_send_requests(thread_number, file_path):
|
||||
print("start send requests")
|
||||
contacts_file_path = file_path
|
||||
_contact_list = read_contacts(contacts_file_path)
|
||||
@@ -88,4 +85,4 @@ def start_send_requests(thread_number=5, file_path='~/Desktop/24_04_to_test.xlsx
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
start_send_requests(thread_number=5, file_path='~/Desktop/24_04_to_test.xlsx')
|
||||
start_send_requests(thread_number=25, file_path='~/Desktop/24_04_to_test.xlsx')
|
||||
|
||||
Reference in New Issue
Block a user