gitlab-org--gitlab-foss/app/workers/plugin_worker.rb
Dmitriy Zaporozhets 2577ff7fd6
Refactor plugins feature and make some doc improvements
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2018-02-28 12:16:23 +02:00

15 lines
299 B
Ruby

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