Skip to content
Snippets Groups Projects
Verified Commit e5bfd3e4 authored by Théo Pirkl's avatar Théo Pirkl :nail_care:
Browse files

Add throttle to download manager and missing measurement

parent 28098b4c
Branches
No related tags found
No related merge requests found
Source diff could not be displayed: it is too large. Options to address this: view the blob.
......@@ -30,7 +30,7 @@ class DownloadFilesFromBrowser(Runnable):
browser = parameters['selenium_instance'] # Not used currently
self.cookies = {c['name']: c['value'] for c in browser.get_cookies()}
with ThreadPoolExecutor(10) as lifeTree:
with ThreadPoolExecutor(int(parameters['throttle'])) as lifeTree:
lifeTree.map(self.__download__, files)
return {"instance": browser} # For continuity purposes
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment