Skip to content

Commit 9f0b5a6

Browse files
committed
build_queue: always increase the count of total builds
1 parent 1caa43e commit 9f0b5a6

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/queue.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,10 +90,11 @@ impl BuildQueue {
9090
None => return Ok(()),
9191
};
9292

93-
match f(&to_process) {
93+
let res = f(&to_process);
94+
crate::web::metrics::TOTAL_BUILDS.inc();
95+
match res {
9496
Ok(()) => {
9597
conn.execute("DELETE FROM queue WHERE id = $1;", &[&to_process.id])?;
96-
crate::web::metrics::TOTAL_BUILDS.inc();
9798
}
9899
Err(e) => {
99100
// Increase attempt count

0 commit comments

Comments
 (0)