经过长时间的处理Heroku HTTP 503响应(Heroku HTTP 503 Response after long process)

编程入门 行业动态 更新时间:2024-10-21 06:10:16
经过长时间的处理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=0

I 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)

更多推荐

本文发布于:2023-08-05 16:44:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1437433.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:长时间   HTTP   Heroku   long   Response

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!