Skip to content

Commit

Permalink
Merge pull request #9 from TranslatorSRI/faster_health_check
Browse files Browse the repository at this point in the history
Faster health check
  • Loading branch information
maximusunc authored Aug 1, 2023
2 parents 352b544 + 2693165 commit 05fa392
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

openapi_args = dict(
title="Answer Appraiser",
version="0.2.2",
version="0.2.3",
terms_of_service="",
translator_component="Utility",
translator_teams=["Standards Reference Implementation Team"],
Expand Down Expand Up @@ -190,6 +190,6 @@ def check_redis_readiness():
port=settings.redis_port,
password=settings.redis_password,
)
r.keys()
r.ping()
except Exception:
raise HTTPException(status_code=status.HTTP_503_SERVICE_UNAVAILABLE)

0 comments on commit 05fa392

Please sign in to comment.