diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-10-19 15:57:54 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-10-19 15:57:54 +0300 |
commit | 419c53ec62de6e97a517abd5fdd4cbde3a942a34 (patch) | |
tree | 1f43a548b46bca8a5fb8fe0c31cef1883d49c5b6 /app/workers/gitlab/bitbucket_import/advance_stage_worker.rb | |
parent | 1da20d9135b3ad9e75e65b028bffc921aaf8deb7 (diff) |
Add latest changes from gitlab-org/gitlab@16-5-stable-eev16.5.0-rc42
Diffstat (limited to 'app/workers/gitlab/bitbucket_import/advance_stage_worker.rb')
-rw-r--r-- | app/workers/gitlab/bitbucket_import/advance_stage_worker.rb | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/app/workers/gitlab/bitbucket_import/advance_stage_worker.rb b/app/workers/gitlab/bitbucket_import/advance_stage_worker.rb index 7f281352a1b..ed89f332652 100644 --- a/app/workers/gitlab/bitbucket_import/advance_stage_worker.rb +++ b/app/workers/gitlab/bitbucket_import/advance_stage_worker.rb @@ -20,13 +20,23 @@ module Gitlab # The known importer stages and their corresponding Sidekiq workers. STAGES = { + repository: Stage::ImportRepositoryWorker, + pull_requests: Stage::ImportPullRequestsWorker, + pull_requests_notes: Stage::ImportPullRequestsNotesWorker, + issues: Stage::ImportIssuesWorker, + issues_notes: Stage::ImportIssuesNotesWorker, + lfs_objects: Stage::ImportLfsObjectsWorker, finish: Stage::FinishImportWorker }.freeze - def find_import_state(project_id) + def find_import_state_jid(project_id) ProjectImportState.jid_by(project_id: project_id, status: :started) end + def find_import_state(id) + ProjectImportState.find(id) + end + private def next_stage_worker(next_stage) |