在Heroku工作者中获取Timeout :: Error异常 [英] Getting Timeout::Error exception in a heroku worker
问题描述
我知道,heroku对于dynos有30秒的超时限制。但对于工人来说,过去我一直在执行很多任务很多分钟,而且我没有问题。现在,在一个应用程序的新功能中,如果任务花费超过30秒,则会看到工人中的进程被删除(延迟作业),并引发Timeout :: Error异常。
我想确认heroku中工作人员的最长执行时间。
谢谢
工作人员(或针对此问题的dynos)没有请求超时。请求超时的用户由路由网格处理。
I know heroku has a 30 seconds timeout limit for the dynos. But for workers, I've been executing many tasks in the past for many minutes and I had no problem. Now in a new feature of an application, I'm seeing the process in the worker is removed (Delayed Job) with a raised Timeout::Error exception if the task takes longer than 30 seconds.
I want to confirm the maximum execution time for a worker in heroku.
Thanks
There is no request timeout for workers (or dynos for that matter). Request timeouts for the users are handled by the Routing mesh.
这篇关于在Heroku工作者中获取Timeout :: Error异常的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!