32b688e785
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
14 lines
360 B
Ruby
14 lines
360 B
Ruby
class ProjectExportWorker
|
|
include Sidekiq::Worker
|
|
include DedicatedSidekiqQueue
|
|
include ExceptionBacktrace
|
|
|
|
sidekiq_options retry: 3
|
|
|
|
def perform(current_user_id, project_id)
|
|
current_user = User.find(current_user_id)
|
|
project = Project.find(project_id)
|
|
|
|
::Projects::ImportExport::ExportService.new(project, current_user).execute
|
|
end
|
|
end
|