Ensure Bitbucket and Bitbucket Server workers are retriable
After reviewing the importers for Bitbucket Cloud and Bitbucket Server, I noted that some workers don't retry when errors occur because downstream classes rescue StandardError, which causes the worker to never fail. To fix the problem, we should allow the exception to bubble up and handle exceptions in the sidekiq_retries_exhausted
callback.
Edited by Rodrigo Tomonari