"frontend/src/api/git@web.lueluesay.top:chenxi/sub2api.git" did not exist on "45bd9ac7055a03ae01aa189e4ecbd1db172de049"
Unverified Commit cbf3dba2 authored by Wesley Liddick's avatar Wesley Liddick Committed by GitHub
Browse files

Merge pull request #454 from ZeroClover/feat-exclude-user-inactive-errors

feat(ops): 将 USER_INACTIVE 错误排除在 SLA 统计之外
parents 4329f72a 673caf41
...@@ -905,7 +905,7 @@ func classifyOpsIsRetryable(errType string, statusCode int) bool { ...@@ -905,7 +905,7 @@ func classifyOpsIsRetryable(errType string, statusCode int) bool {
func classifyOpsIsBusinessLimited(errType, phase, code string, status int, message string) bool { func classifyOpsIsBusinessLimited(errType, phase, code string, status int, message string) bool {
switch strings.TrimSpace(code) { switch strings.TrimSpace(code) {
case "INSUFFICIENT_BALANCE", "USAGE_LIMIT_EXCEEDED", "SUBSCRIPTION_NOT_FOUND", "SUBSCRIPTION_INVALID": case "INSUFFICIENT_BALANCE", "USAGE_LIMIT_EXCEEDED", "SUBSCRIPTION_NOT_FOUND", "SUBSCRIPTION_INVALID", "USER_INACTIVE":
return true return true
} }
if phase == "billing" || phase == "concurrency" { if phase == "billing" || phase == "concurrency" {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment