Have the background resource pool users be very patient
This commit is contained in:
parent
6bf1747f55
commit
717b861d31
1 changed files with 19 additions and 17 deletions
|
|
@ -124,23 +124,25 @@
|
|||
(define (spawn-fiber-for-handler handler)
|
||||
(spawn-fiber
|
||||
(lambda ()
|
||||
(call-with-resource-from-pool (background-connection-pool)
|
||||
(lambda (conn)
|
||||
(with-exception-handler
|
||||
(lambda (exn)
|
||||
(simple-format
|
||||
(current-error-port)
|
||||
"exception in build event handler: ~A\n"
|
||||
exn))
|
||||
(lambda ()
|
||||
(with-throw-handler #t
|
||||
(lambda ()
|
||||
(handler conn))
|
||||
(lambda _
|
||||
(display (backtrace) (current-error-port))
|
||||
(display "\n" (current-error-port)))))
|
||||
#:unwind? #t))
|
||||
#:timeout #f))))
|
||||
(parameterize
|
||||
((resource-pool-retry-checkout-timeout (* 60 60 6)))
|
||||
(call-with-resource-from-pool (background-connection-pool)
|
||||
(lambda (conn)
|
||||
(with-exception-handler
|
||||
(lambda (exn)
|
||||
(simple-format
|
||||
(current-error-port)
|
||||
"exception in build event handler: ~A\n"
|
||||
exn))
|
||||
(lambda ()
|
||||
(with-throw-handler #t
|
||||
(lambda ()
|
||||
(handler conn))
|
||||
(lambda _
|
||||
(display (backtrace) (current-error-port))
|
||||
(display "\n" (current-error-port)))))
|
||||
#:unwind? #t))
|
||||
#:timeout #f)))))
|
||||
|
||||
(define (with-build-ids-for-status data
|
||||
build-ids
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue