TIME_BETWEEN_REQUESTS as env var

This commit is contained in:
norohind committed 2021-11-08 17:48:49 +03:00
1 parent 32257525d9
commit c3dd483e23
1 file changed
+2 -1
+2 -1
View File
@@ -54,7 +54,8 @@ def proxied_request(url: str, method: str = 'get', **kwargs) -> requests.Respons
global PROXIES_DICT
TIME_BETWEEN_REQUESTS: float = 3.0
TIME_BETWEEN_REQUESTS: float = float(os.getenv("JUBILANT_TIME_BETWEEN_REQUESTS")) or 3.0
logger.debug(f'TIME_BETWEEN_REQUESTS = {TIME_BETWEEN_REQUESTS} {type(TIME_BETWEEN_REQUESTS)}')
while True: