feat: enforce shared application resource quotas across namespaces

This commit is contained in:
2026-09-17 17:57:54 +08:00
parent 5c8825e4bc
commit 993786476e
43 changed files with 1606 additions and 49 deletions

View File

@@ -189,7 +189,7 @@ func writeError(w http.ResponseWriter, id string, err error) {
if status == 0 {
status = 503
}
if known.Code == "QUEUE_FULL" {
if known.Code == "QUEUE_FULL" || known.Code == "APPLICATION_FULL" {
status = http.StatusTooManyRequests
w.Header().Set("Retry-After", "1")
}