Commit 263c4357 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 e3873dc8
......@@ -68,6 +68,7 @@
- [project_migrate_hashed_storage, 1]
- [storage_migrator, 1]
- [pages_domain_verification, 1]
- [plugin, 1]
# EE-specific queues
- [ldap_group_sync, 2]
......
......@@ -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