Fix non-rolled-back transactions
This commit is contained in:
parent
4a8c0d2e60
commit
fd662721bb
1 changed files with 1 additions and 0 deletions
|
|
@ -90,6 +90,7 @@ func addWaitingJobs(ctx context.Context) error {
|
|||
log.Error().Err(err).Msg("failed begin txn")
|
||||
return
|
||||
}
|
||||
defer txn.Rollback(ctx)
|
||||
err = handleJob(ctx, txn, job)
|
||||
if err != nil {
|
||||
log.Error().Err(err).Msg("failed handle job")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue