Google App Engine 随机停止执行
Google App Engine randomly stops executing
我试过寻找具体的答案,但找不到任何地方的答案。我有一个很长的 运行 宁(但不是特别密集)的任务,我想每 12 小时 运行。
我已经设置了一个 Google App Engine 标准 node.js Express 服务器来 运行 使用此代码,并且在 运行 在本地运行时它可以完美运行。
然而,大约在中途(但完全随机)它失败并显示以下错误消息:
2021-06-09T11:10:02.935685Z [start] 2021/06/09 11:10:02.934508 Quitting on terminated signal
2021-06-09T11:10:02.951563Z [start] 2021/06/09 11:10:02.951205 Start program failed: user application failed with exit code -1 (refer to stdout/stderr logs for more detail): signal: terminated
2021-06-09T11:10:10.891535Z [start] 2021/06/09 11:10:10.890652 Quitting on terminated signal
2021-06-09T11:10:10.997898Z [start] 2021/06/09 11:10:10.997488 Start program failed: user application failed with exit code -1 (refer to stdout/stderr logs for more detail): signal: terminated
这些是我得到的唯一引用某种错误的日志 - 代码中有大量错误处理,none 其中的任何内容都会被触发或记录。这几乎就像函数在某个时候超时 - 这让我想知道 Google App Engine 是否有最大执行时间?
有没有更好的方法来完成我想做的事情?
Google App Engine 确实有请求的最大超时,请参阅 this documentation
我试过寻找具体的答案,但找不到任何地方的答案。我有一个很长的 运行 宁(但不是特别密集)的任务,我想每 12 小时 运行。
我已经设置了一个 Google App Engine 标准 node.js Express 服务器来 运行 使用此代码,并且在 运行 在本地运行时它可以完美运行。
然而,大约在中途(但完全随机)它失败并显示以下错误消息:
2021-06-09T11:10:02.935685Z [start] 2021/06/09 11:10:02.934508 Quitting on terminated signal
2021-06-09T11:10:02.951563Z [start] 2021/06/09 11:10:02.951205 Start program failed: user application failed with exit code -1 (refer to stdout/stderr logs for more detail): signal: terminated
2021-06-09T11:10:10.891535Z [start] 2021/06/09 11:10:10.890652 Quitting on terminated signal
2021-06-09T11:10:10.997898Z [start] 2021/06/09 11:10:10.997488 Start program failed: user application failed with exit code -1 (refer to stdout/stderr logs for more detail): signal: terminated
这些是我得到的唯一引用某种错误的日志 - 代码中有大量错误处理,none 其中的任何内容都会被触发或记录。这几乎就像函数在某个时候超时 - 这让我想知道 Google App Engine 是否有最大执行时间?
有没有更好的方法来完成我想做的事情?
Google App Engine 确实有请求的最大超时,请参阅 this documentation