diff --git a/pkg/jobs/jobs.go b/pkg/jobs/jobs.go index f65f6b97..809a5102 100644 --- a/pkg/jobs/jobs.go +++ b/pkg/jobs/jobs.go @@ -149,6 +149,9 @@ func (j *jobManagerBase) middleware(job *work.Job, next work.NextMiddlewareFunc) }() err = next() + if err != nil { + sentry.CaptureException(err) + } return err }