Commit 4b998239 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Add plugin queue to sidekiq config [ci skip]

Signed-off-by: Dmitriy Zaporozhets's avatarDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
parent 3337130e
......@@ -68,3 +68,4 @@
- [project_migrate_hashed_storage, 1]
- [storage_migrator, 1]
- [pages_domain_verification, 1]
- [plugin, 1]
......@@ -7,9 +7,9 @@ module Gitlab
end
def self.execute_all_async(data)
files.each do |file|
PluginWorker.perform_async(file, data)
end
args = files.map { |file| [file, data] }
PluginWorker.bulk_perform_async(args)
end
def self.execute(file, data)
......
......@@ -13,4 +13,9 @@ namespace :plugins do
end
end
end
desc 'Validate existing plugins'
task validate_async: :environment do
Gitlab::Plugin.execute_all_async(Gitlab::DataBuilder::Push::SAMPLE_DATA)
end
end
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment