Getting Timeout::Error exception in a heroku worker

烈酒焚心 提交于 2020-01-06 19:38:37

问题


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


回答1:


There is no request timeout for workers (or dynos for that matter). Request timeouts for the users are handled by the Routing mesh.



来源:https://stackoverflow.com/questions/13861597/getting-timeouterror-exception-in-a-heroku-worker

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!