diff options
author | Christopher Baines <mail@cbaines.net> | 2023-03-09 09:39:47 +0000 |
---|---|---|
committer | Christopher Baines <mail@cbaines.net> | 2023-03-09 09:39:47 +0000 |
commit | 519f0c6f67f852ec89b3c9ef87395800452ba61a (patch) | |
tree | 09d21b6805049866a2e6967a79a396c263dc31da /scripts | |
parent | 319439d05a7e44b7d9dcca7db60c57acb3c1f334 (diff) | |
download | data-service-519f0c6f67f852ec89b3c9ef87395800452ba61a.tar data-service-519f0c6f67f852ec89b3c9ef87395800452ba61a.tar.gz |
Defer backfilling derivation distribution counts until later
After the migrations have run.
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/guix-data-service.in | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/scripts/guix-data-service.in b/scripts/guix-data-service.in index d8b9b5a..23886b7 100644 --- a/scripts/guix-data-service.in +++ b/scripts/guix-data-service.in @@ -218,13 +218,6 @@ (pid-file (assq-ref opts 'pid-file))) - (call-with-new-thread - (lambda () - (with-postgresql-connection-per-thread - "backfill" - (lambda () - (backfill-guix-revision-package-derivation-distribution-counts))))) - (when pid-file (call-with-output-file pid-file (lambda (port) @@ -283,6 +276,13 @@ (atomic-box-set! startup-completed #t))) + (call-with-new-thread + (lambda () + (with-postgresql-connection-per-thread + "backfill" + (lambda () + (backfill-guix-revision-package-derivation-distribution-counts))))) + (start-substitute-query-thread) (join-thread server-thread)))) |