App Engine 中的长时间 cron
我想将 web 应用程序重写为 Python 并使用 App Engine,但我有几个可以长时间运行的 cron 脚本。前段时间我使用了 App Engine,想知道现在是否有方法来运行这些脚本,因为 App Engine 有其局限性。 如果您想了解其中一个脚本,有一个脚本可以根据网站上所做的事情来计算用户的业力,因此需要进行数学计算,执行许多 SQL...并且可能需要很多时间。
谢谢!
I want to rewrite a webapp to Python and to use App Engine but I have several cron scripts that can be long running. Some time ago I used App Engine and wanted to know if there are now methods to run these scripts because App Engine has its limits.
If you want to get an idea of one of the scripts there is one that calculates the karma users based on what has been done on the website, so there are mathematical calculations, many executions SQL... and can take much time.
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
那么,您将不会运行任何 SQL 查询,因为 AppEngine 不使用 SQL。
用于运行昂贵计算的两个新选项是后端和MapReduce - 您的选择取决于您想要实现的目标。
Well, you won't be running any SQL queries, because AppEngine doesn't use SQL.
Two new options for running expensive calculations are backends and MapReduce - which you choose depends on exactly what you want to achieve.
如果您只是询问调度脚本,那么 App Engine 和 Python 和 Java
编辑:您现在可以使用Google Cloud SQL 与 Google 应用引擎
If it's just the scheduling scripts that you're asking about, then there is cron for App Engine, for both Python and Java
Edit: you can now use Google Cloud SQL with Google App Engine