debian-mirror-gitlab/app/workers/export_csv_worker.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

25 lines
603 B
Ruby
Raw Normal View History

2020-04-22 19:07:51 +05:30
# frozen_string_literal: true
class ExportCsvWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker
2021-10-27 15:23:28 +05:30
data_consistency :always
2021-06-08 01:23:25 +05:30
sidekiq_options retry: 3
2021-12-11 22:18:48 +05:30
feature_category :team_planning
2020-04-22 19:07:51 +05:30
worker_resource_boundary :cpu
2020-06-23 00:09:42 +05:30
loggable_arguments 2
2020-04-22 19:07:51 +05:30
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)
2021-01-03 14:25:43 +05:30
IssuableExportCsvWorker.perform_async(:issue, @current_user.id, @project.id, params)
2020-04-22 19:07:51 +05:30
end
end