Skip to content

Commit 85464c2

Browse files
committed
fix(webapp): waiting-run label never claims queue latency from a stale queuedAt
1 parent 07cbf83 commit 85464c2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎apps/webapp/app/presenters/v3/waitingRun/waitingRunDiagnosis.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ function describeRun(run: WaitingRunRow, now: Date): WaitingRunDiagnosis["run"]
228228
let waitingLabel: string;
229229
let waitingBasis: WaitingBasis;
230230

231-
if (run.queuedAt) {
231+
if (run.queuedAt && queueWaitReliable) {
232232
// Canonical queue wait = startedAt - queuedAt; for a run that hasn't started, now - queuedAt.
233233
const end = run.startedAt ?? now;
234234
const ms = Math.max(0, end.getTime() - run.queuedAt.getTime());

0 commit comments

Comments
 (0)