经过长时间的处理Heroku HTTP 503响应(Heroku HTTP 503 Response after long process)
我在http调用之后做了一个很长的过程,并且在响应中收到此错误(503)。
我需要增加Dyno的TimeOut,任何人都知道如何?
例外
[router]: at=error code=H12 desc="Request timeout" dyno=web.1 connect=0ms service=30000ms status=503 bytes=0I am making a long process after a http call and I receive this error (503) in the Response.
I need to increase the Dyno's TimeOut, anybody know how?
Exception
[router]: at=error code=H12 desc="Request timeout" dyno=web.1 connect=0ms service=30000ms status=503 bytes=0最满意答案
你不能在Heroku中增加“Dyno的TimeOut”。 它是所有人的着名约束之一,并在30秒内由Heroku严格设定。 你可以在这里看到细节
I can't increase "Dyno's TimeOut" in Heroku. It is one of the famous constraints of all and is strictly set by Heroku as 30 sec. You can see the details here
My solution was to make back process with Threads, I make a Thread with the long process and responde "running" with the index of the process, and then I check if its complete making requests by 5 seconds (or something like this)
更多推荐
发布评论