Skip to content

Commit 2ca9da9

Browse files
committed
fix(queue): restore autoscaling metrics
1 parent 60eed10 commit 2ca9da9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

services/rend-api/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1696,7 +1696,7 @@ async fn publish_media_queue_metrics(state: &AppState) -> Result<()> {
16961696
WHERE (attempts < max_attempts AND status IN ('queued', 'deferred_budget') AND run_after <= now())
16971697
OR (status = 'running' AND lease_expires_at <= now())
16981698
),
1699-
COALESCE(max(EXTRACT(EPOCH FROM (now() - created_at))) FILTER (
1699+
COALESCE(max(EXTRACT(EPOCH FROM (now() - job.created_at))) FILTER (
17001700
WHERE (attempts < max_attempts AND status IN ('queued', 'deferred_budget') AND run_after <= now())
17011701
OR (status = 'running' AND lease_expires_at <= now())
17021702
), 0)::double precision,

0 commit comments

Comments
 (0)