在Rails中执行较长的PLSQL过程时,如何解决heroku的30秒超时? [英] How can I workaround heroku's 30 sec timeout when executing long PLSQL procedure in Rails?

查看:106
本文介绍了在Rails中执行较长的PLSQL过程时,如何解决heroku的30秒超时?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Rails Web应用程序中,我需要开发一个页面,在其中可以启动PLSQL过程. 我最终通过本教程开发了它:

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

但是我有一个很大的问题.我要启动的过程可以运行几个小时.该网络应用程序位于Heroku中,其超时时间设置为30秒. 我该如何重写我的代码以绕过30秒超时,并运行非常长的PLSQL过程?

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?

推荐答案

听起来像是后台工作的东西;) https://devcenter.heroku.com/articles/background-jobs-queueing

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

这篇关于在Rails中执行较长的PLSQL过程时,如何解决heroku的30秒超时?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆