summaryrefslogtreecommitdiff
path: root/app/workers
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2020-04-12 21:09:39 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2020-04-12 21:09:39 +0000
commitcdf9ef52fe13899be29068992a9858f8b0e72457 (patch)
treed26b77d147c1a8506213c05048f026fe9ef8ad1e /app/workers
parent13150a38e701080f6c64d4925c838214a3f5ef2c (diff)
downloadgitlab-ce-cdf9ef52fe13899be29068992a9858f8b0e72457.tar.gz
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/workers')
-rw-r--r--app/workers/repository_check/batch_worker.rb4
-rw-r--r--app/workers/repository_check/single_repository_worker.rb4
2 files changed, 4 insertions, 4 deletions
diff --git a/app/workers/repository_check/batch_worker.rb b/app/workers/repository_check/batch_worker.rb
index 3e5e6a25228..9e762860ec6 100644
--- a/app/workers/repository_check/batch_worker.rb
+++ b/app/workers/repository_check/batch_worker.rb
@@ -2,8 +2,6 @@
module RepositoryCheck
class BatchWorker # rubocop:disable Scalability/IdempotentWorker
- prepend_if_ee('::EE::RepositoryCheck::BatchWorker') # rubocop: disable Cop/InjectEnterpriseEditionModule
-
include ApplicationWorker
include RepositoryCheckQueue
include ExclusiveLeaseGuard
@@ -94,3 +92,5 @@ module RepositoryCheck
end
end
end
+
+RepositoryCheck::BatchWorker.prepend_if_ee('::EE::RepositoryCheck::BatchWorker')
diff --git a/app/workers/repository_check/single_repository_worker.rb b/app/workers/repository_check/single_repository_worker.rb
index b25a20b3eff..edff7fc31df 100644
--- a/app/workers/repository_check/single_repository_worker.rb
+++ b/app/workers/repository_check/single_repository_worker.rb
@@ -5,8 +5,6 @@ module RepositoryCheck
include ApplicationWorker
include RepositoryCheckQueue
- prepend_if_ee('::EE::RepositoryCheck::SingleRepositoryWorker') # rubocop: disable Cop/InjectEnterpriseEditionModule
-
def perform(project_id)
project = Project.find(project_id)
healthy = project_healthy?(project)
@@ -68,3 +66,5 @@ module RepositoryCheck
end
end
end
+
+RepositoryCheck::SingleRepositoryWorker.prepend_if_ee('::EE::RepositoryCheck::SingleRepositoryWorker')