diff options
Diffstat (limited to 'app/workers/gitlab/github_import/advance_stage_worker.rb')
-rw-r--r-- | app/workers/gitlab/github_import/advance_stage_worker.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/workers/gitlab/github_import/advance_stage_worker.rb b/app/workers/gitlab/github_import/advance_stage_worker.rb index 8bbfb10ed6e..21e478f935b 100644 --- a/app/workers/gitlab/github_import/advance_stage_worker.rb +++ b/app/workers/gitlab/github_import/advance_stage_worker.rb @@ -21,6 +21,10 @@ module Gitlab finish: Stage::FinishImportWorker }.freeze + def find_import_state(project_id) + ProjectImportState.jid_by(project_id: project_id, status: :started) + end + private def next_stage_worker(next_stage) |