atOrgWorkerCap reports whether the org has reached its maximum concurrent workers (count cap). Hot-idle workers are excluded (they don't consume the count budget), so a true result means every counted worker is actively assigned — a new worker cannot be added.
()
| 283 | worker.activeSessions-- |
| 284 | } |
| 285 | p.shared.mu.Unlock() |
| 286 | if !owned { |
| 287 | return orgAcquireOutcome{retry: true} |
| 288 | } |
| 289 | return orgAcquireOutcome{worker: worker} |
| 290 | } |
| 291 | |
| 292 | // atOrgWorkerCap reports whether the org has reached its maximum concurrent |
no test coverage detected