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