Make the /health/ads check more useful

This commit is contained in:
Keith Mitchell
2012-10-31 09:44:35 -07:00
parent 9bcf690e99
commit 152c79c62c

View File

@@ -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")