Skip to content

Commit b8e388e

Browse files
Merge pull request #1642 from Kobzol/db-record-duration
Ignore duplicate values in `artifact_collection_duration` in Postgre
2 parents 473a756 + a1e88f7 commit b8e388e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

database/src/pool/postgres.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -445,6 +445,7 @@ impl PostgresConnection {
445445
date_recorded,
446446
duration
447447
) VALUES ($1, CURRENT_TIMESTAMP, $2)
448+
ON CONFLICT DO NOTHING
448449
").await.unwrap(),
449450
in_progress_steps: conn.prepare("
450451
select step,

0 commit comments

Comments
 (0)