Scheduled tasks timeout, selenium memory leak possible fix

This commit is contained in:
Luciano Gervasoni committed 2025-04-07 19:12:36 +02:00
1 parent d41fb26a99
commit 296a8fe8a8
4 files changed
+11 -8

No files matched your search

+5 -1
View File
@@ -18,7 +18,6 @@ def get_webdriver():
driver = webdriver.Firefox(options=options, service=service)
return driver
class MissingKidsFetcher():
def __init__(self) -> None:
pass
@@ -87,4 +86,9 @@ class MissingKidsFetcher():
logger.warning("Exception while fetching MissingKids {}".format(str(e)), exc_info=True)
set_urls = set()
try:
driver.close()
except Exception as e:
logger.warning("Exception while closing driver: {}".format(str(e)), exc_info=True)
return set_urls