Further improve load-new-guix-revision-jobs
Split the derivations up in to some groups, and run invalidate-derivation-caches! inbetween to try and reduce the memory usage. Also make a couple of other changes to reduce memory usage or protect against errors.
This commit is contained in:
parent
9f162c3b2c
commit
a092db5007
2 changed files with 101 additions and 53 deletions
|
|
@ -4,8 +4,8 @@
|
|||
#:export (process-jobs))
|
||||
|
||||
(define (process-jobs conn)
|
||||
(match (process-next-load-new-guix-revision-job conn)
|
||||
(#f (begin (simple-format #t "Waiting for new jobs...")
|
||||
(sleep 60)
|
||||
(process-jobs conn)))
|
||||
(_ (process-jobs conn))))
|
||||
(while #t
|
||||
(match (process-next-load-new-guix-revision-job conn)
|
||||
(#f (begin (simple-format #t "Waiting for new jobs...")
|
||||
(sleep 60)))
|
||||
(_ #f))))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue