summaryrefslogtreecommitdiff
path: root/app/workers/plugin_worker.rb
blob: c293e28be4a7eb264e0a3d859a3cd0df2ffb6ba6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# frozen_string_literal: true

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