Limit the parallelism when running derivation-file-names->derivation-ids
To focus on finishing some systems before starting the next.
This commit is contained in:
parent
02947cc9c4
commit
0184f10942
1 changed files with 14 additions and 10 deletions
|
|
@ -2631,21 +2631,25 @@ WHERE builder != 'builtin:download'
|
|||
(loop (+ start-index chunk-size))))))
|
||||
derivations-vector)))
|
||||
|
||||
(define derivation-file-names->derivation-ids/parallelism-limiter
|
||||
(make-parallelism-limiter 2))
|
||||
(define (process-system-and-target system target)
|
||||
(with-time-logging
|
||||
(simple-format #f "processing derivations for ~A" (cons system target))
|
||||
(let* ((derivations-vector (get-derivations system target))
|
||||
(derivation-ids
|
||||
(with-time-logging
|
||||
(simple-format #f "derivation-file-names->derivation-ids (~A ~A)"
|
||||
system target)
|
||||
(derivation-file-names->derivation-ids
|
||||
postgresql-connection-pool
|
||||
call-with-utility-thread
|
||||
read-derivations/serialised
|
||||
derivation-ids-hash-table
|
||||
derivations-vector
|
||||
#:log-tag (simple-format #f "~A:~A" system target))))
|
||||
(with-parallelism-limiter
|
||||
derivation-file-names->derivation-ids/parallelism-limiter
|
||||
(with-time-logging
|
||||
(simple-format #f "derivation-file-names->derivation-ids (~A ~A)"
|
||||
system target)
|
||||
(derivation-file-names->derivation-ids
|
||||
postgresql-connection-pool
|
||||
call-with-utility-thread
|
||||
read-derivations/serialised
|
||||
derivation-ids-hash-table
|
||||
derivations-vector
|
||||
#:log-tag (simple-format #f "~A:~A" system target)))))
|
||||
(guix-revision-id
|
||||
(fibers-force guix-revision-id-promise))
|
||||
(package-ids (fibers-force package-ids-promise))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue