Move backfilling in to the server module and use the connection pool

To avoid using the old PostgreSQL connection per thread code.
This commit is contained in:
Christopher Baines 2024-04-01 21:51:29 +01:00
parent 5f5b8fc91d
commit b5f59189e1
3 changed files with 19 additions and 24 deletions

View file

@ -197,13 +197,6 @@
(lambda (port)
(simple-format port "~A\n" (getpid)))))
(call-with-new-thread
(lambda ()
(with-postgresql-connection-per-thread
"backfill"
(lambda ()
(backfill-guix-revision-package-derivation-distribution-counts)))))
(start-substitute-query-threads)
(call-with-new-thread