Don't timeout waiting for background pool connections
This commit is contained in:
parent
aca5f8ca05
commit
ea03ca7230
1 changed files with 17 additions and 15 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue