Fix non-rolled-back transactions

This commit is contained in:
Eli Ribble 2026-04-17 18:19:13 +00:00
parent 4a8c0d2e60
commit fd662721bb
No known key found for this signature in database

View file

@ -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")