Defer backfilling derivation distribution counts until later

After the migrations have run.
This commit is contained in:
Christopher Baines 2023-03-09 09:39:47 +00:00
parent 319439d05a
commit 519f0c6f67

View file

@ -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))))