sidekiq
This commit is contained in:
parent
7bfd38eaa9
commit
c7bb3a1f72
14 changed files with 75 additions and 94 deletions
|
@ -1,7 +1,9 @@
|
|||
class SystemHookWorker
|
||||
@queue = :system_hook
|
||||
include Sidekiq::Worker
|
||||
|
||||
def self.perform(hook_id, data)
|
||||
sidekiq_options queue: :system_hook
|
||||
|
||||
def perform(hook_id, data)
|
||||
SystemHook.find(hook_id).execute data
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue