guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

05/07: Spawn specific PostgreSQL connections for the blocked_builds upda


From: Christopher Baines
Subject: 05/07: Spawn specific PostgreSQL connections for the blocked_builds updates
Date: Sat, 12 Nov 2022 05:59:13 -0500 (EST)

cbaines pushed a commit to branch master
in repository data-service.

commit a34bf4defcca080169770eda7bf26856c02ab940
Author: Christopher Baines <mail@cbaines.net>
AuthorDate: Sat Nov 12 10:46:46 2022 +0000

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

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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]