Confirmed users
927
edits
Tarek.ziade (talk | contribs) |
Tarek.ziade (talk | contribs) |
||
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 | ||
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. |