aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Baines <mail@cbaines.net>2022-11-12 10:46:46 +0000
committerChristopher Baines <mail@cbaines.net>2022-11-12 10:46:46 +0000
commita34bf4defcca080169770eda7bf26856c02ab940 (patch)
treecd43b2d6b57e0b92ec1745e0e06ab87bfc1a1e3c
parentfc5f562731bc32fe53ccc4f913f697a63a093fdc (diff)
downloaddata-service-a34bf4defcca080169770eda7bf26856c02ab940.tar
data-service-a34bf4defcca080169770eda7bf26856c02ab940.tar.gz
Spawn specific PostgreSQL connections for the blocked_builds updates
So that the queries don't get cancelled by the statement timeout.
-rw-r--r--guix-data-service/web/build-server/controller.scm3
1 files changed, 2 insertions, 1 deletions
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)))))))))