@indigoai-us/hq-cli 5.230.0 → 5.230.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/dist/lib/lanes/admission.js +5 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -149,6 +149,11 @@ export function hasActivePendingResume(lane, nowMs) {
|
|
|
149
149
|
}
|
|
150
150
|
/** Whether a lane currently owns a running slot for its host/provider caps. */
|
|
151
151
|
export function laneOccupiesRunningSlot(lane, nowMs = Date.now()) {
|
|
152
|
+
// An account-cap queue is waiting behind an occupied account slot. Its
|
|
153
|
+
// pending resume must remain active for admission ordering, but it must not
|
|
154
|
+
// count as a second owner of the slot that blocked it.
|
|
155
|
+
if (lane.state === "queued" && lane.queued_reason === "account_cap")
|
|
156
|
+
return false;
|
|
152
157
|
return lane.state === "running" ||
|
|
153
158
|
hasActiveAdmissionReservation(lane, nowMs) ||
|
|
154
159
|
hasActivePendingResume(lane, nowMs);
|