debian-mirror-gitlab/app/workers/plugin_worker.rb

16 lines
299 B
Ruby
Raw Normal View History

2018-03-27 19:54:05 +05:30
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