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)
|
||||
(with-exception-handler
|
||||
(lambda (exn)
|
||||
(create-partitions)
|
||||
|
||||
(try-insert))
|
||||
try-insert
|
||||
#:unwind? #t)))
|
||||
(create-partitions)
|
||||
(try-insert)))
|
||||
|
||||
(define (handle-populating-blocked-builds-for-scheduled-builds conn build-ids)
|
||||
(define (get-build-details build-id)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue