Skip to content

Commit

Permalink
Maybe this should wait more
Browse files Browse the repository at this point in the history
  • Loading branch information
KR-Ravindra committed Oct 28, 2023
1 parent 701cbf7 commit 867f04a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions recommender/recommender.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,10 +117,10 @@ async def keyword_recommendations_api(request: Request):
return existing_algo_data
else:
logger.info("Let's give that scrapper and parser engines, a tad bit more time")
if wait_iterator > 4:
if wait_iterator > 15:
raise HTTPException(status_code=503, detail="Scrapper and Parser Engines are taking too long, please try again later")
wait_iterator += 1
time.sleep(7)
time.sleep(10)
else:
logger.info("Let's give that scrapper and parser engines, a tad bit more time")
if wait_iterator > 4:
Expand Down

0 comments on commit 867f04a

Please sign in to comment.