Add a list of the queued revisions to the index page
This commit is contained in:
parent
ffdd2416f4
commit
623347d835
3 changed files with 88 additions and 45 deletions
|
|
@ -16,7 +16,8 @@
|
|||
#:use-module (guix-data-service model package-metadata)
|
||||
#:use-module (guix-data-service model derivation)
|
||||
#:export (process-next-load-new-guix-revision-job
|
||||
select-job-for-commit))
|
||||
select-job-for-commit
|
||||
most-recent-n-load-new-guix-revision-jobs))
|
||||
|
||||
(define (inferior-guix->package-ids store conn inf)
|
||||
(let* ((packages (inferior-packages inf))
|
||||
|
|
@ -173,6 +174,14 @@
|
|||
(list commit))))
|
||||
result))
|
||||
|
||||
(define (most-recent-n-load-new-guix-revision-jobs conn n)
|
||||
(let ((result
|
||||
(exec-query
|
||||
conn
|
||||
"SELECT * FROM load_new_guix_revision_jobs LIMIT $1"
|
||||
(list (number->string n)))))
|
||||
result))
|
||||
|
||||
(define (process-next-load-new-guix-revision-job conn)
|
||||
(let ((next
|
||||
(exec-query
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue