diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-10-24 18:12:41 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-10-24 18:12:41 +0300 |
commit | 40a4f37126bb1a1dd6b6f4b3c0ebb414a3e3908a (patch) | |
tree | ff6b0774cbd1ab71b69d9e9bf9fa0e0b3d1ad799 /app/workers/bulk_imports/relation_batch_export_worker.rb | |
parent | a19e3ec8e8545d5a6b275bab3e5ea8b0cc707449 (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 | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/app/workers/bulk_imports/relation_batch_export_worker.rb b/app/workers/bulk_imports/relation_batch_export_worker.rb index 4ce36929e15..b3acf3ee01b 100644 --- a/app/workers/bulk_imports/relation_batch_export_worker.rb +++ b/app/workers/bulk_imports/relation_batch_export_worker.rb @@ -10,7 +10,13 @@ module BulkImports sidekiq_options status_expiration: StuckExportJobsWorker::EXPORT_JOBS_EXPIRATION def perform(user_id, batch_id) - RelationBatchExportService.new(user_id, batch_id).execute + @user = User.find(user_id) + @batch = BulkImports::ExportBatch.find(batch_id) + + log_extra_metadata_on_done(:relation, @batch.export.relation) + log_extra_metadata_on_done(:objects_count, @batch.objects_count) + + RelationBatchExportService.new(@user, @batch).execute end end end |