Better handle cuirass builds with a stoptime of 0

Use the timestamp instead for the status. Previously no status was being
associated with these builds.
This commit is contained in:
Christopher Baines 2020-05-06 23:09:05 +01:00
parent 2e3276e803
commit a21d3d3cf7

View file

@ -226,9 +226,11 @@ WHERE derivation_output_details.path = $1"
(when (and (< 0 starttime) (when (and (< 0 starttime)
(not (member "started" existing-status-entries))) (not (member "started" existing-status-entries)))
(list starttime "started")) (list starttime "started"))
(when (and (< 0 stoptime) (when (not (member status-string existing-status-entries))
(not (member status-string existing-status-entries))) (list (if (< 0 stoptime)
(list stoptime status-string))))))) timestamp
stoptime)
status-string)))))))
(define (process-pending-builds conn build-server-id url) (define (process-pending-builds conn build-server-id url)
(for-each (for-each