How can I workaround heroku's 30 sec timeout when executing long PLSQL procedure in Rails?

☆樱花仙子☆ 提交于 2019-12-25 07:40:09

问题


In a rails web app I needed to develop a page where I can launch PLSQL procedures. I finally developed it by this tutorial:

How can I call a PLSQL function in rails, by clicking a button in a view?

But I have a huge problem. The procedures I want to launch can run for several hours. The web app is in Heroku, which has a timeout set to 30 seconds. How can I rewrite my code in order to bypass this 30 sec timeout, and run the extremely long PLSQL procedures?


回答1:


sounds like a thing for background jobs ;) https://devcenter.heroku.com/articles/background-jobs-queueing



来源:https://stackoverflow.com/questions/37854166/how-can-i-workaround-herokus-30-sec-timeout-when-executing-long-plsql-procedure

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