sergeipetrov commited on
Commit
ffbccd2
·
verified ·
1 Parent(s): c223374

Update src/main.py

Browse files
Files changed (1) hide show
  1. src/main.py +1 -1
src/main.py CHANGED
@@ -163,7 +163,7 @@ def wake_up_endpoint(url):
163
  ).status_code != 200:
164
  time.sleep(2)
165
  n_loop += 1
166
- if n_loop > 10:
167
  raise TimeoutError("TEI endpoint is unavailable")
168
  logger.info("TEI endpoint is up")
169
 
 
163
  ).status_code != 200:
164
  time.sleep(2)
165
  n_loop += 1
166
+ if n_loop > 30:
167
  raise TimeoutError("TEI endpoint is unavailable")
168
  logger.info("TEI endpoint is up")
169