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:
authorGitLab Bot <gitlab-bot@gitlab.com>2023-11-28 21:11:25 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2023-11-28 21:11:25 +0300
commit27269330aeb4e843939367788409ff902e714201 (patch)
tree5a5bc4733e7cfd8f98328ce367f1ef6ad47db8e5 /app/workers
parentb6d3467a44aa1e7321aa8ec50cd1cc67f296d64f (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/workers')
-rw-r--r--app/workers/concerns/gitlab/github_import/rescheduling_methods.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/app/workers/concerns/gitlab/github_import/rescheduling_methods.rb b/app/workers/concerns/gitlab/github_import/rescheduling_methods.rb
index 316d30d94da..e2808f45821 100644
--- a/app/workers/concerns/gitlab/github_import/rescheduling_methods.rb
+++ b/app/workers/concerns/gitlab/github_import/rescheduling_methods.rb
@@ -8,6 +8,8 @@ module Gitlab
extend ActiveSupport::Concern
include JobDelayCalculator
+ attr_reader :project
+
ENQUEUED_JOB_COUNT = 'github-importer/enqueued_job_count/%{project}/%{collection}'
included do
@@ -17,8 +19,10 @@ module Gitlab
# project_id - The ID of the GitLab project to import the note into.
# hash - A Hash containing the details of the GitHub object to import.
# notify_key - The Redis key to notify upon completion, if any.
+
def perform(project_id, hash, notify_key = nil)
- project = Project.find_by_id(project_id)
+ @project = Project.find_by_id(project_id) # rubocop:disable Gitlab/ModuleWithInstanceVariables -- GitHub Import
+ # uses modules everywhere. Too big to refactor.
return notify_waiter(notify_key) unless project