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

10 lines
170 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)
2012-07-15 08:29:06 -04:00
SystemHook.find(hook_id).execute data
end
end