mirror of
https://github.com/norohind/jubilant-system.git
synced 2025-04-20 16:07:36 +03:00
TIME_BETWEEN_REQUESTS as env var
This commit is contained in:
parent
32257525d9
commit
c3dd483e23
3
utils.py
3
utils.py
@ -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:
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user