2018-06-26 13:12:29 +00:00
|
|
|
module RepositoryCheck
|
|
|
|
class DispatchWorker
|
|
|
|
include ApplicationWorker
|
|
|
|
include CronjobQueue
|
|
|
|
include ::EachShardWorker
|
|
|
|
|
|
|
|
def perform
|
|
|
|
return unless Gitlab::CurrentSettings.repository_checks_enabled
|
|
|
|
|
2018-06-27 14:42:17 +00:00
|
|
|
each_eligible_shard do |shard_name|
|
2018-06-26 13:12:29 +00:00
|
|
|
RepositoryCheck::BatchWorker.perform_async(shard_name)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|