切分一下,解决delayed_job卡死问题。

This commit is contained in:
guange 2016-12-18 18:25:14 +08:00
parent d7155afbe5
commit d34ed4b744
1 changed files with 4 additions and 0 deletions

View File

@ -222,6 +222,10 @@ class News < ActiveRecord::Base
end
end
unless vs.empty?
self.delay.contain_news_message(vs)
end
end
end