Backport support for finding EE workers

This backports support for finding EE workers in ee/app/workers from EE
to CE, since we already do this for the configuration paths constant.
This removes the need for EE specific modules.
This commit is contained in:
Yorick Peterse 2019-03-12 17:41:38 +01:00
parent ae9838d035
commit 6174ea77a5
No known key found for this signature in database
GPG Key ID: EDD30D2BEB691AC9
1 changed files with 3 additions and 1 deletions

View File

@ -48,7 +48,9 @@ module Gitlab
end
def self.workers
@workers ||= find_workers(Rails.root.join('app', 'workers'))
@workers ||=
find_workers(Rails.root.join('app', 'workers')) +
find_workers(Rails.root.join('ee', 'app', 'workers'))
end
def self.find_workers(root)