This commit is contained in:
Dmitriy Zaporozhets 2013-01-09 08:14:05 +03:00
parent 7bfd38eaa9
commit c7bb3a1f72
14 changed files with 75 additions and 94 deletions

View file

@ -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!(/^\//, "")

View file

@ -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