Commit 19dc714e authored by Ash McKenzie's avatar Ash McKenzie

Merge branch 'advance-stage-worker-handle-custom-import-state-model' into 'master'

Allow advance stage worker to implement its own state checker

See merge request gitlab-org/gitlab!28609
parents 4140f6c9 a3da41e8
......@@ -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)
......
......@@ -48,7 +48,7 @@ module Gitlab
end
def find_import_state(project_id)
ProjectImportState.jid_by(project_id: project_id, status: :started)
raise NotImplementedError
end
private
......
......@@ -16,6 +16,10 @@ module Gitlab
finish: Gitlab::JiraImport::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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment