diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-08-18 11:17:02 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-08-18 11:17:02 +0300 |
commit | b39512ed755239198a9c294b6a45e65c05900235 (patch) | |
tree | d234a3efade1de67c46b9e5a38ce813627726aa7 /app/workers/projects | |
parent | d31474cf3b17ece37939d20082b07f6657cc79a9 (diff) |
Add latest changes from gitlab-org/gitlab@15-3-stable-eev15.3.0-rc42
Diffstat (limited to 'app/workers/projects')
-rw-r--r-- | app/workers/projects/import_export/relation_export_worker.rb | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/app/workers/projects/import_export/relation_export_worker.rb b/app/workers/projects/import_export/relation_export_worker.rb new file mode 100644 index 00000000000..13ca33c4457 --- /dev/null +++ b/app/workers/projects/import_export/relation_export_worker.rb @@ -0,0 +1,26 @@ +# frozen_string_literal: true + +module Projects + module ImportExport + class RelationExportWorker + include ApplicationWorker + include ExceptionBacktrace + + idempotent! + data_consistency :always + deduplicate :until_executed + feature_category :importers + sidekiq_options status_expiration: StuckExportJobsWorker::EXPORT_JOBS_EXPIRATION + urgency :low + worker_resource_boundary :memory + + def perform(project_relation_export_id) + relation_export = Projects::ImportExport::RelationExport.find(project_relation_export_id) + + if relation_export.queued? + Projects::ImportExport::RelationExportService.new(relation_export, jid).execute + end + end + end + end +end |