Skip to content

Use RetryError for DeleteBranchWorker

What does this MR do and why?

Problem

#track_and_raise_exception raises a standard error that gets reported to Sentry.

Solution

  • Add log_and_raise_exception method to log error in Kibana and re-raise the exception
  • Use Gitlab::SidekiqMiddleware::RetryError exception to avoid noise in Sentry
  • Add documentation to cover RetryError usage

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Vasilii Iakliushin

Merge request reports