10 lines
214 B
Ruby
10 lines
214 B
Ruby
class SystemHookWorker
|
|
include Sidekiq::Worker
|
|
include DedicatedSidekiqQueue
|
|
|
|
sidekiq_options retry: 4
|
|
|
|
def perform(hook_id, data, hook_name)
|
|
SystemHook.find(hook_id).execute(data, hook_name)
|
|
end
|
|
end
|