问题
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