Stop using exception handling when inserting blocked_builds entries
As it doesn't work in a transaction.
This commit is contained in:
parent
01e54c36db
commit
4101c6b897
1 changed files with 2 additions and 7 deletions
|
|
@ -174,13 +174,8 @@ ON CONFLICT DO NOTHING")
|
||||||
'()))
|
'()))
|
||||||
|
|
||||||
(unless (null? data)
|
(unless (null? data)
|
||||||
(with-exception-handler
|
(create-partitions)
|
||||||
(lambda (exn)
|
(try-insert)))
|
||||||
(create-partitions)
|
|
||||||
|
|
||||||
(try-insert))
|
|
||||||
try-insert
|
|
||||||
#:unwind? #t)))
|
|
||||||
|
|
||||||
(define (handle-populating-blocked-builds-for-scheduled-builds conn build-ids)
|
(define (handle-populating-blocked-builds-for-scheduled-builds conn build-ids)
|
||||||
(define (get-build-details build-id)
|
(define (get-build-details build-id)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue