def health_check():
 return (time.time() - int(NamedGlobals.get(PROMO_HEALTH_KEY, default=0)))

def health_check ( ) : return ( time . time ( ) - int ( NamedGlobals . get ( PROMO_HEALTH_KEY , default = 0 ) ) )
calculate the number of seconds since promotions were last updated .