Defer backfilling derivation distribution counts until later
After the migrations have run.
This commit is contained in:
parent
319439d05a
commit
519f0c6f67
1 changed files with 7 additions and 7 deletions
|
|
@ -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))))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue