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
|
|
|
|
|
2015-01-23 19:10:43 -05:00
|
|
|
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
|