Gitlab_meta to 3.1. Added workaround for 500 Redis error until it will be fixed

This commit is contained in:
Dmitriy Zaporozhets 2012-11-21 12:45:15 +02:00
parent d18e2bd59d
commit 898d09a21e
4 changed files with 26 additions and 13 deletions

View file

@ -1,8 +1,13 @@
class Admin::DashboardController < AdminController
def index
@workers = Resque.workers
@pending_jobs = Resque.size(:post_receive)
@projects = Project.order("created_at DESC").limit(10)
@users = User.order("created_at DESC").limit(10)
@resque_accessible = true
@workers = Resque.workers
@pending_jobs = Resque.size(:post_receive)
rescue Redis::InheritedError
@resque_accessible = false
end
end