17 lines
330 B
Ruby
17 lines
330 B
Ruby
# 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
|