How to change default request time out on Heroku?

前端 未结 3 773
日久生厌
日久生厌 2021-01-07 23:24

My app is built on Rails and my production server is on Heroku.

My application is mostly used for file upload and file processing and it takes more than 50 seconds f

3条回答
  •  一向
    一向 (楼主)
    2021-01-07 23:40

    This is not possible according to Heroku's documentation

    The timeout value is not configurable. If your server requires longer than 30 seconds to complete a given request, we recommend moving that work to a background task or worker to periodically ping your server to see if the processing request has been finished. This pattern frees your web processes up to do more work, and decreases overall application response times.

提交回复
热议问题