Class: ExportCsvWorker
- Inherits:
-
Object
- Object
- ExportCsvWorker
- Includes:
- ApplicationWorker
- Defined in:
- app/workers/export_csv_worker.rb
Overview
rubocop:disable Scalability/IdempotentWorker
Constant Summary
Constants included from ApplicationWorker
ApplicationWorker::LOGGING_EXTRA_KEY, ApplicationWorker::SAFE_PUSH_BULK_LIMIT
Constants included from Gitlab::Loggable
Constants included from WorkerAttributes
WorkerAttributes::DEFAULT_DATA_CONSISTENCY, WorkerAttributes::DEFAULT_DEFER_DELAY, WorkerAttributes::NAMESPACE_WEIGHTS, WorkerAttributes::VALID_DATA_CONSISTENCIES, WorkerAttributes::VALID_RESOURCE_BOUNDARIES, WorkerAttributes::VALID_URGENCIES
Instance Method Summary collapse
Methods included from Gitlab::Loggable
Methods included from Gitlab::SidekiqVersioning::Worker
Methods included from WorkerContext
Instance Method Details
#perform(current_user_id, project_id, params) ⇒ Object
14 15 16 17 18 19 20 21 22 23 |
# File 'app/workers/export_csv_worker.rb', line 14 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 |