class ZuoraConnect::AppInstanceBase
def reset_mark_expires_at
def reset_mark_expires_at if defined?(Redis.current) refresh_time = Redis.current.zscore("InstanceRefreshing", self.id) return refresh_time.present? ? (refresh_time - Time.now.to_i).round(0) : 0 else return 0 end end