Skip to content

Commit

Permalink
changed cache check from critical to not critical (fix #341)
Browse files Browse the repository at this point in the history
fix #341
  • Loading branch information
chicco785 committed Nov 21, 2020
1 parent e4e8312 commit 30e760c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/reporter/health.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,12 +68,12 @@ def get_health(with_geocoder=False):
res['status'] = 'fail'
res.setdefault('details', {})['crateDB'] = 'cannot reach crate'

# Check geocache (critical)
# Check cache (not critical)
health = check_cache()
if health['status'] != 'pass':
res.setdefault('details', {})['redis'] = health
if health['status'] == 'fail' or res['status'] == 'pass':
res['status'] = health['status']
if res['status'] == 'pass':
res['status'] = 'warn'

# Check geocoder (not critical)
if with_geocoder:
Expand Down

0 comments on commit 30e760c

Please sign in to comment.