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

Remove unused procedure.

* src/cuirass/base.scm (cancel-old-builds): Remove it.
parent 38ee2c5b
No related branches found
No related tags found
No related merge requests found
......@@ -624,14 +624,6 @@ This procedure is meant to be called at startup."
(with-db-worker-thread db
(sqlite-exec db "UPDATE Builds SET status = -2 WHERE status = -1;")))
(define (cancel-old-builds age)
"Cancel builds older than AGE seconds."
(log-message "canceling builds older than ~a seconds..." age)
(with-db-worker-thread db
(sqlite-exec
db "UPDATE Builds SET status = 4 WHERE status = -2 AND timestamp < "
(- (time-second (current-time time-utc)) age) ";")))
(define (restart-builds)
"Restart builds whose status in the database is \"pending\" (scheduled or
started)."
......
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