From a34bf4defcca080169770eda7bf26856c02ab940 Mon Sep 17 00:00:00 2001 From: Christopher Baines Date: Sat, 12 Nov 2022 10:46:46 +0000 Subject: Spawn specific PostgreSQL connections for the blocked_builds updates So that the queries don't get cancelled by the statement timeout. --- guix-data-service/web/build-server/controller.scm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'guix-data-service/web') diff --git a/guix-data-service/web/build-server/controller.scm b/guix-data-service/web/build-server/controller.scm index 7c2ace6..750fb67 100644 --- a/guix-data-service/web/build-server/controller.scm +++ b/guix-data-service/web/build-server/controller.scm @@ -141,7 +141,8 @@ (spawn-fiber (lambda () (parallel-via-thread-pool-channel - (with-thread-postgresql-connection + (with-postgresql-connection + "build-event-handler-conn" (lambda (conn) (handler conn ids))))))))) -- cgit v1.2.3