Fix issue inserting the empty log row

If the job started, and then was restarted, the row will already exist. So
don't error on a conflict.
This commit is contained in:
Christopher Baines 2019-07-09 18:43:21 +01:00
parent f2d28b4def
commit 502dc93618

View file

@ -118,7 +118,7 @@
(exec-query
conn
"INSERT INTO load_new_guix_revision_job_logs (job_id, contents) VALUES
($1, NULL)"
($1, NULL) ON CONFLICT DO NOTHING"
(list job-id)))
(define (combine-log-parts! conn job-id)