summaryrefslogtreecommitdiff
path: root/app/workers/repository_import_worker.rb
diff options
context:
space:
mode:
authorStan Hu <stanhu@gmail.com>2017-08-24 12:24:58 -0700
committerStan Hu <stanhu@gmail.com>2017-08-24 12:29:50 -0700
commit38bb92197dcb67df917bb9793be5a1a48611c047 (patch)
treee04f83b0d37846f045d21504de69361dd9b746b9 /app/workers/repository_import_worker.rb
parent4428944d53232d7c9d620ae483e66fe46f414baf (diff)
downloadgitlab-ce-38bb92197dcb67df917bb9793be5a1a48611c047.tar.gz
Enable 5 lines of Sidekiq backtrace lines to aid in debugging
Customers often have Sidekiq jobs that failed without much context. Without Sentry, there's no way to tell where these exceptions were hit. Adding in additional lines adds a bit more Redis storage overhead. This commit adds in backtrace logging for workers that delete groups/projects and import/export projects. Closes #27626
Diffstat (limited to 'app/workers/repository_import_worker.rb')
-rw-r--r--app/workers/repository_import_worker.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/workers/repository_import_worker.rb b/app/workers/repository_import_worker.rb
index 2c2d1e8b91f..00a021abbdc 100644
--- a/app/workers/repository_import_worker.rb
+++ b/app/workers/repository_import_worker.rb
@@ -3,6 +3,7 @@ class RepositoryImportWorker
include Sidekiq::Worker
include DedicatedSidekiqQueue
+ include ExceptionBacktrace
sidekiq_options status_expiration: StuckImportJobsWorker::IMPORT_JOBS_EXPIRATION