Services/F1/Server/ServicesStatusDB: Difference between revisions

Line 86: Line 86:
         res.headers["X-Strict-Retries"] = 'on'
         res.headers["X-Strict-Retries"] = 'on'
         res.body = disabling_reason
         res.body = disabling_reason
 
     
       raise res   
       raise res   
    
    
Line 98: Line 98:
   if ratio < min_ratio:
   if ratio < min_ratio:
       # oops, too many failures
       # oops, too many failures
       raise 503("Retry-After: " + retry_after)
       res = 503()
      res.headers = {"Retry-After": retry_after}
      raise res


What are "Good" and "Bad" responses from the third-party services is to the workers discretion.
What are "Good" and "Bad" responses from the third-party services is to the workers discretion.
Confirmed users
927

edits