feat: enforce durable queue resource limits and backpressure

This commit is contained in:
2026-09-17 17:25:56 +08:00
parent 3ce7d2c104
commit 5c8825e4bc
38 changed files with 1231 additions and 30 deletions

View File

@@ -497,7 +497,7 @@ func (r *workerRuntime) receive(reply runtimeReply) error {
r.remove(j)
}
return nil
case "EXECUTION_PAUSED", "UNAVAILABLE":
case "EXECUTION_PAUSED", "RATE_LIMITED", "UNAVAILABLE":
if j.retryDelay == 0 {
j.retryDelay = 200 * time.Millisecond
} else {