2018-11-08 19:23:39 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2018-03-27 19:54:05 +05:30
|
|
|
class PluginWorker
|
|
|
|
include ApplicationWorker
|
|
|
|
|
|
|
|
sidekiq_options retry: false
|
2019-12-21 20:55:43 +05:30
|
|
|
feature_category :integrations
|
2018-03-27 19:54:05 +05:30
|
|
|
|
|
|
|
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
|