delay each check for 5 seconds
This commit is contained in:
parent
4a9ae58740
commit
69ebfae058
1 changed files with 1 additions and 0 deletions
|
@ -159,6 +159,7 @@ def exec_recorder(stream_id, stream_hls_url):
|
||||||
# Check if the stream_hls_url returns 200
|
# Check if the stream_hls_url returns 200
|
||||||
req_counter = 0
|
req_counter = 0
|
||||||
while True:
|
while True:
|
||||||
|
time.sleep(5)
|
||||||
req_counter += 1
|
req_counter += 1
|
||||||
if requests.get(stream_hls_url).status_code == 200:
|
if requests.get(stream_hls_url).status_code == 200:
|
||||||
logger_job.warning(f'{stream_hls_url} accessible after {req_counter} attempts.')
|
logger_job.warning(f'{stream_hls_url} accessible after {req_counter} attempts.')
|
||||||
|
|
Loading…
Reference in a new issue