sidekiq
This commit is contained in:
parent
7bfd38eaa9
commit
c7bb3a1f72
14 changed files with 75 additions and 94 deletions
|
@ -1,7 +1,9 @@
|
|||
class PostReceive
|
||||
@queue = :post_receive
|
||||
include Sidekiq::Worker
|
||||
|
||||
def self.perform(repo_path, oldrev, newrev, ref, identifier)
|
||||
sidekiq_options queue: :post_receive
|
||||
|
||||
def perform(repo_path, oldrev, newrev, ref, identifier)
|
||||
repo_path.gsub!(Gitlab.config.gitolite.repos_path.to_s, "")
|
||||
repo_path.gsub!(/.git$/, "")
|
||||
repo_path.gsub!(/^\//, "")
|
||||
|
|
|
@ -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