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

10 lines
193 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
2012-07-15 08:29:06 -04:00
2013-01-09 00:14:05 -05:00
sidekiq_options queue: :system_hook
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