gitlabhq/app/workers/system_hook_worker.rb
Dmitriy Zaporozhets c7bb3a1f72 sidekiq
2013-01-09 08:14:05 +03:00

9 lines
170 B
Ruby

class SystemHookWorker
include Sidekiq::Worker
sidekiq_options queue: :system_hook
def perform(hook_id, data)
SystemHook.find(hook_id).execute data
end
end