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

Add plugin queue to sidekiq config [ci skip]

Signed-off-by: default avatarDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
parent 3337130e
...@@ -68,3 +68,4 @@ ...@@ -68,3 +68,4 @@
- [project_migrate_hashed_storage, 1] - [project_migrate_hashed_storage, 1]
- [storage_migrator, 1] - [storage_migrator, 1]
- [pages_domain_verification, 1] - [pages_domain_verification, 1]
- [plugin, 1]
...@@ -7,9 +7,9 @@ module Gitlab ...@@ -7,9 +7,9 @@ module Gitlab
end end
def self.execute_all_async(data) def self.execute_all_async(data)
files.each do |file| args = files.map { |file| [file, data] }
PluginWorker.perform_async(file, data)
end PluginWorker.bulk_perform_async(args)
end end
def self.execute(file, data) def self.execute(file, data)
......
...@@ -13,4 +13,9 @@ namespace :plugins do ...@@ -13,4 +13,9 @@ namespace :plugins do
end end
end end
end end
desc 'Validate existing plugins'
task validate_async: :environment do
Gitlab::Plugin.execute_all_async(Gitlab::DataBuilder::Push::SAMPLE_DATA)
end
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