aboutsummaryrefslogtreecommitdiff
path: root/scripts/guix-data-service-process-job.in
diff options
context:
space:
mode:
authorChristopher Baines <mail@cbaines.net>2024-01-18 14:44:04 +0000
committerChristopher Baines <mail@cbaines.net>2024-01-18 15:34:40 +0000
commitc1d2f3a1b7ba20ad3f56840a160ee1ec08cd3a64 (patch)
treea8ac56ddf1ff543a380938d7c9c3173c854fce6b /scripts/guix-data-service-process-job.in
parent6842a432d668f3e42de0b416813f359beef9ae6f (diff)
downloaddata-service-c1d2f3a1b7ba20ad3f56840a160ee1ec08cd3a64.tar
data-service-c1d2f3a1b7ba20ad3f56840a160ee1ec08cd3a64.tar.gz
Add meaningful parallelism to processing jobs
Make parallel use of inferiors when computing channel instance derivations, and when extracting information about a revision. This should allow for some horizontal scalability, reducing the impact of additional systems for which derivations need computing. This commit also fixes an apparent issue with package replacements, as previously the wrong id was used, and this hid some issues around deduplication.
Diffstat (limited to 'scripts/guix-data-service-process-job.in')
-rw-r--r--scripts/guix-data-service-process-job.in5
1 files changed, 3 insertions, 2 deletions
diff --git a/scripts/guix-data-service-process-job.in b/scripts/guix-data-service-process-job.in
index fd7ab3f..633d8db 100644
--- a/scripts/guix-data-service-process-job.in
+++ b/scripts/guix-data-service-process-job.in
@@ -78,7 +78,8 @@
(lambda ()
(process-load-new-guix-revision-job
job
- #:skip-system-tests? (assq-ref opts 'skip-system-tests)))
+ #:skip-system-tests? (assq-ref opts 'skip-system-tests)
+ #:parallelism (assq-ref opts 'parallelism)))
#:hz 0
- #:parallelism (assq-ref opts 'parallelism)
+ #:parallelism 1
#:drain? #t)))))