Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit cfaf6aa

Browse files
committed
Only read expected step durations from master collections
1 parent c5966b7 commit cfaf6aa

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

database/src/pool/postgres.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -481,11 +481,13 @@ impl PostgresConnection {
481481
epoch from interval '0 seconds'::interval +
482482
(select cp.end_time - cp.start_time
483483
from collector_progress as cp
484+
join artifact on artifact.id = cp.aid
484485
where
485486
cp.aid != $1
486487
and cp.step = collector_progress.step
487488
and cp.start_time is not null
488489
and cp.end_time is not null
490+
and artifact.type = 'master'
489491
order by start_time desc
490492
limit 1
491493
))::int4

0 commit comments

Comments
 (0)