Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2018-02-26 15:15:51 +0300
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2018-02-26 17:07:08 +0300
commit4b998239a3fec56f93e24ca063d1196416aec938 (patch)
tree0f8b36ec2bfd9436a19f3487e36dc68e9ea3fbc5 /lib/gitlab/plugin.rb
parent3337130e015fba1d04a53e8e3a7098f966792f5f (diff)
Add plugin queue to sidekiq config [ci skip]
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'lib/gitlab/plugin.rb')
-rw-r--r--lib/gitlab/plugin.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/gitlab/plugin.rb b/lib/gitlab/plugin.rb
index 5339c4dbbc8..3e82f5cb0d8 100644
--- a/lib/gitlab/plugin.rb
+++ b/lib/gitlab/plugin.rb
@@ -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)