fix for rescue job failed on 171
This commit is contained in:
parent
0663e43be7
commit
89b1aace8a
|
@ -3,7 +3,7 @@ require 'resque_scheduler/server'
|
||||||
# require 'yaml'
|
# require 'yaml'
|
||||||
|
|
||||||
Resque.redis = 'localhost:6379'
|
Resque.redis = 'localhost:6379'
|
||||||
Resque.redis.namespace = "resque:nccu"
|
Resque.redis.namespace = "resque"
|
||||||
|
|
||||||
# If you want to be able to dynamically change the schedule,
|
# If you want to be able to dynamically change the schedule,
|
||||||
# uncomment this line. A dynamic schedule can be updated via the
|
# uncomment this line. A dynamic schedule can be updated via the
|
||||||
|
|
|
@ -77,7 +77,6 @@ namespace :mid_site do
|
||||||
local_user.save!
|
local_user.save!
|
||||||
end
|
end
|
||||||
sys_users = User.all(conditions: {admin: false}).includes(:avatar).to_a
|
sys_users = User.all(conditions: {admin: false}).includes(:avatar).to_a
|
||||||
Rails.cache.write('user_setting', sys_users)
|
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
|
Reference in New Issue