Scheduled tasks timeout, selenium memory leak possible fix
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user