debian-mirror-gitlab/app/workers/export_csv_worker.rb
2021-12-11 22:18:48 +05:30

24 lines
603 B
Ruby

# frozen_string_literal: true
class ExportCsvWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3
feature_category :team_planning
worker_resource_boundary :cpu
loggable_arguments 2
def perform(current_user_id, project_id, params)
@current_user = User.find(current_user_id)
@project = Project.find(project_id)
params.symbolize_keys!
params[:project_id] = project_id
params.delete(:sort)
IssuableExportCsvWorker.perform_async(:issue, @current_user.id, @project.id, params)
end
end