2013-04-17 22 views
1

我有一个应用程序在heroku上运行,有时会报告Timeout :: Error和(ActiveRecord :: StatementInvalid:Timeout :: Error:execution expired)“execution expired ”。ActiveRecord :: StatementInvalid:Timeout :: Error:执行过期

这发生在整个网站(不是任何特定的查询)。

示例 - :

的ActiveRecord :: StatementInvalid:超时::错误:执行过期:SELECT “用户” * FROM “用户” WHERE “用户”, “ID”= 3881 LIMIT 1

。我的应用程序在导轨上3.2.11

回答

0

你在使用Rack :: Timeout吗?我一直在为同一个问题而苦苦挣扎,我认为这是因为我的代码从Rack :: Timeout超时,ActiveRecord正在笨拙地封装错误(请参阅:Time out an ActiveRecord query)。

+0

是的,我们正在使用机架:超时。让我试试这个 – userxyz