BigW Consortium Gitlab

system_hook_worker.rb 193 Bytes
Newer Older
Valeriy Sizov committed
1
class SystemHookWorker
Dmitriy Zaporozhets committed
2
  include Sidekiq::Worker
Valeriy Sizov committed
3

Dmitriy Zaporozhets committed
4 5
  sidekiq_options queue: :system_hook

6 7
  def perform(hook_id, data, hook_name)
    SystemHook.find(hook_id).execute(data, hook_name)
Valeriy Sizov committed
8 9
  end
end