Skip to content

Commit 67456b4

Browse files
committed
fix(run-engine): base-queue gauges reuse the shared total-limit read
The remaining gauge plumbing for the base scripts rides at this level because the shared total-limit memo was introduced here.
1 parent 8121d14 commit 67456b4

1 file changed

Lines changed: 0 additions & 9 deletions

File tree

  • internal-packages/run-engine/src/run-queue

‎internal-packages/run-engine/src/run-queue/index.ts‎

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -227,15 +227,6 @@ const QUEUE_METRICS_CK_GAUGE_EXTRAS = {
227227
ckMaxWaitMs: "__ckwait",
228228
};
229229

230-
// Total-concurrency tail (gauge[10]/gauge[11]): live group cardinality + raw stored cap.
231-
// Requires the groupConcurrencyKey local and the __totalLimitRaw memo (one GET shared with
232-
// the total-cap gate); the CK scripts that run this (the Tracked variants and the CK
233-
// dequeue) declare both. The group SCARD stays a fresh read: it must be post-admission.
234-
const QUEUE_METRICS_TOTAL_GAUGE_EXTRAS = {
235-
totalRunning: "redis.call('SCARD', groupConcurrencyKey)",
236-
totalLimit: "__totalLimitRaw() or '0'",
237-
};
238-
239230
// CK enqueue variants of the two gauges above, extended with the CK-health tail.
240231
const QUEUE_METRICS_CK_ENQUEUE_GAUGE_LUA = createMetricsGaugeComputeLua({
241232
enabledArg: "ARGV[#ARGV] == '1'",

0 commit comments

Comments
 (0)