Enable Sidekiq backtracing for workers that delete data
Description
Enable Sidekiq backtracing for workers that delete data
Proposal
For workers that delete data we should enable a full stack trace to be logged, to enable better debugging.
For example, we have seen unhandled exceptions raised in the ProjectDestroyWorker
that leave projects in a soft-deleted state. This will ensure that the project name and path is not freed up until the project is deleted fully.
Links / references
Sidekiq Option:
https://github.com/mperham/sidekiq/wiki/Advanced-Options#workers
Relevant issues:
https://gitlab.com/gitlab-org/gitlab-ce/issues/20365 https://gitlab.com/gitlab-org/gitlab-ce/issues/27457