Don't timeout waiting for background pool connections

This commit is contained in:
Christopher Baines 2024-09-08 10:23:16 +01:00
parent aca5f8ca05
commit ea03ca7230

View file

@ -124,21 +124,23 @@
(define (spawn-fiber-for-handler handler) (define (spawn-fiber-for-handler handler)
(spawn-fiber (spawn-fiber
(lambda () (lambda ()
(with-resource-from-pool (background-connection-pool) conn (call-with-resource-from-pool (background-connection-pool)
(with-exception-handler (lambda (conn)
(lambda (exn) (with-exception-handler
(simple-format (lambda (exn)
(current-error-port) (simple-format
"exception in build event handler: ~A\n" (current-error-port)
exn)) "exception in build event handler: ~A\n"
(lambda () exn))
(with-throw-handler #t (lambda ()
(lambda () (with-throw-handler #t
(handler conn)) (lambda ()
(lambda _ (handler conn))
(display (backtrace) (current-error-port)) (lambda _
(display "\n" (current-error-port))))) (display (backtrace) (current-error-port))
#:unwind? #t))))) (display "\n" (current-error-port)))))
#:unwind? #t))
#:timeout #f))))
(define (with-build-ids-for-status data (define (with-build-ids-for-status data
build-ids build-ids