如何在 Google App Engine 中运行脚本超过 10 分钟

发布于 2024-11-30 23:25:50 字数 95 浏览 7 评论 0原文

我知道任务队列只能运行 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

卖梦商人 2024-12-07 23:25:50

使用后端。 此处记录了它们。

但是,如果您的脚本由于处理太多数据而无法及时完成,那么如果您希望它能够扩展,您可能需要考虑重写它。将其分成块并在任务队列上运行它们是一种常见的方法,这意味着您的任务不会随着数据集大小的增加而运行得越来越慢。

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文