Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app/workers/concerns/gitlab/github_import/stage_methods.rb')
-rw-r--r--app/workers/concerns/gitlab/github_import/stage_methods.rb8
1 files changed, 6 insertions, 2 deletions
diff --git a/app/workers/concerns/gitlab/github_import/stage_methods.rb b/app/workers/concerns/gitlab/github_import/stage_methods.rb
index 1feaaf917b2..a5287fcfbe2 100644
--- a/app/workers/concerns/gitlab/github_import/stage_methods.rb
+++ b/app/workers/concerns/gitlab/github_import/stage_methods.rb
@@ -9,8 +9,12 @@ module Gitlab
return unless (project = find_project(project_id))
- if project.import_state&.canceled?
- info(project_id, message: 'project import canceled')
+ unless project.import_state&.in_progress?
+ info(
+ project_id,
+ message: 'Project import is no longer running. Stopping worker.',
+ import_status: project.import_state.status
+ )
return
end