reduce max_workers to 100
This commit is contained in:
@@ -215,7 +215,7 @@ def find_confirmation_contacts_mail_list(mail_list, subjects: list = None):
|
|||||||
gmx_proxy_config = get_gmx_proxy_config()
|
gmx_proxy_config = get_gmx_proxy_config()
|
||||||
yahoo_proxy_config = get_yahoo_proxy_config()
|
yahoo_proxy_config = get_yahoo_proxy_config()
|
||||||
# read all the emails
|
# read all the emails
|
||||||
with ThreadPoolExecutor(max_workers=200) as executor:
|
with ThreadPoolExecutor(max_workers=100) as executor:
|
||||||
for mail in mail_list:
|
for mail in mail_list:
|
||||||
if is_gmx_address(mail.mail) and gmx_proxy_config is not None:
|
if is_gmx_address(mail.mail) and gmx_proxy_config is not None:
|
||||||
executor.submit(read_gmx_proxy_confirmation_emails, mail, mails_messages, gmx_proxy_config, subjects)
|
executor.submit(read_gmx_proxy_confirmation_emails, mail, mails_messages, gmx_proxy_config, subjects)
|
||||||
|
|||||||
Reference in New Issue
Block a user