gitlab-org--gitlab-foss/app/workers/system_hook_worker.rb

11 lines
214 B
Ruby
Raw Normal View History

2012-07-15 08:29:06 -04:00
class SystemHookWorker
2013-01-09 00:14:05 -05:00
include Sidekiq::Worker
include DedicatedSidekiqQueue
2013-01-09 00:14:05 -05:00
sidekiq_options retry: 4
def perform(hook_id, data, hook_name)
SystemHook.find(hook_id).execute(data, hook_name)
2012-07-15 08:29:06 -04:00
end
end