summaryrefslogtreecommitdiff
path: root/app/workers/plugin_worker.rb
blob: bfcc683d99a8b2442ac8fc323f7619b6675d500b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
class PluginWorker
  include ApplicationWorker

  sidekiq_options retry: false

  def perform(file_name, data)
    success, message = Gitlab::Plugin.execute(file_name, data)

    unless success
      Gitlab::PluginLogger.error("Plugin Error => #{file_name}: #{message}")
    end

    true
  end
end