mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-04-05 03:00:15 -04:00
Make the /health/ads check more useful
This commit is contained in:
@@ -64,7 +64,8 @@ def _mark_promos_updated():
|
||||
|
||||
|
||||
def health_check():
|
||||
return NamedGlobals.get(PROMO_HEALTH_KEY, default=0)
|
||||
"""Calculate the number of seconds since promotions were last updated"""
|
||||
return time.time() - int(NamedGlobals.get(PROMO_HEALTH_KEY, default=0))
|
||||
|
||||
|
||||
@memoize("get_promote_srid")
|
||||
|
||||
Reference in New Issue
Block a user