2018-06-27 03:23:28 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2018-02-19 12:55:54 -05:00
|
|
|
class PluginWorker
|
|
|
|
include ApplicationWorker
|
|
|
|
|
|
|
|
sidekiq_options retry: false
|
|
|
|
|
|
|
|
def perform(file_name, data)
|
2018-02-28 05:16:23 -05:00
|
|
|
success, message = Gitlab::Plugin.execute(file_name, data)
|
|
|
|
|
|
|
|
unless success
|
|
|
|
Gitlab::PluginLogger.error("Plugin Error => #{file_name}: #{message}")
|
|
|
|
end
|
|
|
|
|
|
|
|
true
|
2018-02-19 12:55:54 -05:00
|
|
|
end
|
|
|
|
end
|