diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-04-25 15:18:56 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-04-25 15:18:56 +0300 |
commit | d2d913b606702ecefa01f03362602fde256e3f75 (patch) | |
tree | 07643306ee63f789188a9133823aac3c92c94dfb /app/workers/bulk_imports/relation_batch_export_worker.rb | |
parent | af69e63b6655a450849a8fa2640ae6ce5a8db681 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/workers/bulk_imports/relation_batch_export_worker.rb')
-rw-r--r-- | app/workers/bulk_imports/relation_batch_export_worker.rb | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/app/workers/bulk_imports/relation_batch_export_worker.rb b/app/workers/bulk_imports/relation_batch_export_worker.rb new file mode 100644 index 00000000000..4ce36929e15 --- /dev/null +++ b/app/workers/bulk_imports/relation_batch_export_worker.rb @@ -0,0 +1,16 @@ +# frozen_string_literal: true + +module BulkImports + class RelationBatchExportWorker + include ApplicationWorker + + idempotent! + data_consistency :always # rubocop:disable SidekiqLoadBalancing/WorkerDataConsistency + feature_category :importers + sidekiq_options status_expiration: StuckExportJobsWorker::EXPORT_JOBS_EXPIRATION + + def perform(user_id, batch_id) + RelationBatchExportService.new(user_id, batch_id).execute + end + end +end |