diff options
author | Christopher Baines <mail@cbaines.net> | 2022-11-12 10:46:46 +0000 |
---|---|---|
committer | Christopher Baines <mail@cbaines.net> | 2022-11-12 10:46:46 +0000 |
commit | a34bf4defcca080169770eda7bf26856c02ab940 (patch) | |
tree | cd43b2d6b57e0b92ec1745e0e06ab87bfc1a1e3c /guix-data-service/web | |
parent | fc5f562731bc32fe53ccc4f913f697a63a093fdc (diff) | |
download | data-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.
Diffstat (limited to 'guix-data-service/web')
-rw-r--r-- | guix-data-service/web/build-server/controller.scm | 3 |
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))))))))) |