• Stan Hu's avatar
    Simplify /-/liveness check to avoid connecting to the database · eb2bc7d9
    Stan Hu authored
    The previous implementation would hit the database each time
    and provide a dummy response. If the database goes down, this
    means all application workers would be taken out of service.
    Simplify this check by using a Rails middleware that intercepts
    this endpoint and returns a 200 response.
    eb2bc7d9
liveness_health_check_spec.rb 1.26 KB