Skip to content

Commit 8b5b9f7

Browse files
committed
Do not reset start time of steps when something is recomputed
1 parent f32dc7c commit 8b5b9f7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

database/src/pool/postgres.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1168,7 +1168,7 @@ where
11681168
self.conn()
11691169
.execute(
11701170
"update collector_progress set start_time = statement_timestamp() \
1171-
where aid = $1 and step = $2 and end_time is null;",
1171+
where aid = $1 and step = $2 and start_time is null and end_time is null;",
11721172
&[&(aid.0 as i32), &step],
11731173
)
11741174
.await

database/src/pool/sqlite.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1054,7 +1054,7 @@ impl Connection for SqliteConnection {
10541054
self.raw_ref()
10551055
.execute(
10561056
"update collector_progress set start = strftime('%s','now') \
1057-
where aid = ? and step = ? and end is null;",
1057+
where aid = ? and step = ? and start is null and end is null;",
10581058
params![&aid.0, &step],
10591059
)
10601060
.unwrap()

0 commit comments

Comments
 (0)