如何在 Google App Engine 中运行脚本超过 10 分钟
我知道任务队列只能运行 10 分钟,并且我有一个脚本无法在该时间限制内完成。有没有办法突破这个时间限制呢?我研究了后端,因为我知道后端没有限制,但我找不到有关如何制作后端的文档
I know that Task Queues can only run for 10 minutes, and I have a script that cannot finish in that time limit. Is there a way to exceed this time constraint? I looked into backends, as I know those have no limits, but I couldn't find the documentation on how to make one
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
使用后端。 此处记录了它们。
但是,如果您的脚本由于处理太多数据而无法及时完成,那么如果您希望它能够扩展,您可能需要考虑重写它。将其分成块并在任务队列上运行它们是一种常见的方法,这意味着您的任务不会随着数据集大小的增加而运行得越来越慢。
Use a backend. They're documented here.
If your script won't finish in time because it's processing too much data, though, you probably want to consider rewriting it if you want it to scale. Breaking it up into chunks and running them on the task queue is a common approach, and means your task won't run slower and slower as your dataset increases in size.