You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is it your validate_email_delivery() that is taking more than 60 seconds, or a single call to resolve()? The resolver's lifetime field is the default lifetime for each resolve() invocation. Your validate_email_delivery() code is calling resolve() several times, to get MX, A, AAAA, and TXT. At 15 seconds each, that could be 60 seconds. If you want to impose a lifetime over a set of resolutions, you need to decide how much to give each and supply a lifetime for each invocation.
Describe the bug
Using the
email-validator
lib ( https://github.com/JoshData/python-email-validator/blob/main/email_validator/deliverability.py#L40 ), with a lifetime set to 15s, resolve often runs for over 60 seconds. I'd expect a lifetime of 15s to run for maybe 16s maximum. I didn't test further, my solution on my side is to to usesignal
to interrupt the resolve (got the idea from https://stackoverflow.com/a/494273 )I also opened an issue on
email-validator
: JoshData/python-email-validator#101To Reproduce
See
email-validator
implementation. You could try maybe throttling network callsContext (please complete the following information):
The text was updated successfully, but these errors were encountered: