Skip to content
Snippets Groups Projects
Unverified Commit 37de7054 authored by Mathieu Othacehe's avatar Mathieu Othacehe
Browse files

Reset build timestamps on restart.

* src/cuirass/database.scm (db-restart-build!, db-restart-evaluation!): Reset
starttime and stoptime field.
parent 870fe8a9
No related branches found
No related tags found
No related merge requests found
......@@ -816,14 +816,16 @@ UPDATE Builds SET stoptime =" now
(with-db-worker-thread db
(exec-query/bind db "UPDATE Builds SET status="
(build-status scheduled)
"WHERE id=" build-id ";")))
", starttime = 0, stoptime = 0
WHERE id=" build-id ";")))
(define (db-restart-evaluation! eval-id)
"Restart the evaluation with EVAL-ID id."
(with-db-worker-thread db
(exec-query/bind db "UPDATE Builds SET status="
(build-status scheduled)
"WHERE evaluation=" eval-id ";")))
", starttime = 0, stoptime = 0
WHERE evaluation=" eval-id ";")))
(define (query->bind-arguments query-string)
"Return a list of keys to query strings by parsing QUERY-STRING."
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment