Skip to content
This repository has been archived by the owner on Oct 31, 2021. It is now read-only.

Commit

Permalink
Report errors from jobs to sentry.
Browse files Browse the repository at this point in the history
  • Loading branch information
elliotcourant committed Jun 14, 2021
1 parent bf9a46e commit 540c0c7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/jobs/jobs.go
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,9 @@ func (j *jobManagerBase) middleware(job *work.Job, next work.NextMiddlewareFunc)
}()

err = next()
if err != nil {
sentry.CaptureException(err)
}
return err
}

Expand Down

0 comments on commit 540c0c7

Please sign in to comment.