Google App Engine 任务队列
我有一个包含多个任务的任务队列。如果我从管理控制台删除特定任务,它会从任务队列中消失,但 GAE 不会终止它。该任务仍在后台执行。 这是一种常见行为吗?
I have a task queue with several tasks. If I delete a particular task from Admin Console, it disappears from the task queue but GAE doesnt terminate it. The task is still being executed in the background.
Is this a common behavior ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
是的,我看到同样的行为。似乎您只能从管理控制台删除待处理的任务。一旦开始,它们就会继续运行,直到完成或遇到异常(新更新可能长达 10 分钟)。
我注意到它们也不会停止版本升级,如果您没有预料到,这有点奇怪……如果任务需要很长时间,您最终会在应用程序的两个版本中同时运行处理程序。不过这是有道理的。
Yeah, I see the same behavior. Seems you can only delete pending tasks from the admin console. Once they've started they continue to run until they finish or hit an exception (could be as long as 10 minutes with the new update).
I've noticed they don't stop on version upgrades either, which is a little weird if you aren't expecting it... if the task takes a long time you end up with handlers running in two versions of the app simultaneously. It makes sense though.