我想在appengine上连续运行一个程序。这个程序会自动连续抓取一些网站并将数据存储到它的数据库中。程序是否可以 继续在 appengine 上这样做?还是 appengine 会终止进程?
注意:要抓取的网站没有存储在appengine上
最佳答案
i want to run a program continiously on appengine.
不能。
最接近的是后台运行 scheduled tasks最后no more than 30 seconds :
Notably, this means that the lifetime of a single task's execution is limited to 30 seconds. If your task's execution nears the 30 second limit, App Engine will raise an exception which you may catch and then quickly save your work or log process.
关于google-app-engine - 应用引擎上的爬虫,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3087871/