debian-mirror-gitlab/app/workers/file_hook_worker.rb
2021-10-27 15:23:28 +05:30

21 lines
484 B
Ruby

# frozen_string_literal: true
class FileHookWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker
data_consistency :always
sidekiq_options retry: false
feature_category :integrations
loggable_arguments 0
urgency :low
def perform(file_name, data)
success, message = Gitlab::FileHook.execute(file_name, data)
unless success
Gitlab::FileHookLogger.error("File Hook Error => #{file_name}: #{message}")
end
true
end
end