Add more detailed new revision job handling

Create a new events table for the new guix revision jobs, and update this when
processing a job starts, as well as finished with success or failure.

Additionally, remove the dependnency on open-inferior/container, as this
functionality isn't merged in to Guix master yet.
This commit is contained in:
Christopher Baines 2019-06-02 22:00:29 +01:00
parent 4ccf3132b6
commit 5d06a28577
6 changed files with 160 additions and 83 deletions

View file

@ -46,7 +46,7 @@
"
SELECT NULL AS id, load_new_guix_revision_jobs.id AS job_id, commit, source
FROM load_new_guix_revision_jobs
WHERE git_repository_id = $1
WHERE git_repository_id = $1 AND succeeded_at IS NULL
UNION
SELECT id, NULL, commit, NULL
FROM guix_revisions