From 755abc7f6efd38fc5aa27b9c6f8d0f9f503bbb97 Mon Sep 17 00:00:00 2001 From: Username Date: Thu, 25 Dec 2025 19:58:49 +0100 Subject: [PATCH] dashboard: add queue ETA countdown to Worker Pool pane --- static/dashboard.html | 1 + static/dashboard.js | 9 +++++++++ 2 files changed, 10 insertions(+) diff --git a/static/dashboard.html b/static/dashboard.html index 70b0feb..9c2cc0b 100644 --- a/static/dashboard.html +++ b/static/dashboard.html @@ -74,6 +74,7 @@
Active Threads-
Job Queue-
+
Queue ETA-
diff --git a/static/dashboard.js b/static/dashboard.js index ecbc1ae..36a0098 100644 --- a/static/dashboard.js +++ b/static/dashboard.js @@ -351,6 +351,15 @@ function update(d) { $('threads').textContent = d.threads + '/' + d.max_threads; setBar('threadBar', d.threads, d.max_threads, 'blu'); $('queue').textContent = fmt(d.queue_size); + // Calculate queue ETA: queue_size / tests_per_second + var queueEta = '-'; + if (d.queue_size > 0 && d.recent_rate > 0.01) { + var etaSecs = d.queue_size / d.recent_rate; + queueEta = fmtTime(etaSecs); + } else if (d.queue_size === 0) { + queueEta = 'empty'; + } + $('queueEta').textContent = queueEta; $('uptime').textContent = fmtTime(d.uptime_seconds); // Charts