blob: b1422cd8795e66764bba66d15bddbb350e1e4afc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
# frozen_string_literal: true
class FileHookWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker
sidekiq_options retry: false
feature_category :integrations
loggable_arguments 0
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
|