App Engine 任务队列等待限制
在发生事件之前,任务可以在任务队列中等待处理多长时间?如果不是永远,那么可能会发生什么?
我可以将大量任务添加到处理率非常低的队列中,并在几天/几周/几个月内处理它们吗?
如果任务等待时间过长,是否会从队列中弹出?
maximum countdown/ETA for a task:30 days from the current date and time
我认为这是在谈论有意/以编程方式设置未来的 eta,而不是允许任务等待多长时间。
How long can a task sit in the task queue waiting to be processed before something happens? If its not forever, what are those somethings that might happen?
Can I add a very large number of tasks to a queue that has a very low processing rate and have them be processed over the course of days/weeks/months?
Are tasks ejected from the queue if they're waiting for their turn too long?
Task Queue Quota and Limits says
maximum countdown/ETA for a task:30 days from the current date and time
I think that's talking about intentionally/programatically setting an eta in the future, not how long a task is allowed to wait for its turn.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
除了分配给存储任务的存储量之外,队列中可以包含的任务数量没有限制。同样,它们可以等待执行的时间也没有限制,但正如您所指出的,您不能将预计到达时间安排在未来超过 30 天的任务。
There's no limit on how many tasks you can have in your queue, other than the amount of storage you have allocated to storing tasks. There's likewise no limit how long they can wait to execute, though as you point out, you can't schedule a task with an ETA more than 30 days in the future.
据我所知,它们会永远存在。我已经有一些在他们里面好几天了。现在我有一些已经 9 天了,尽管队列已暂停。唯一的限制是队列大小和计数(目前尚未强制执行 )。
As far as I know they last forever. I have had some in their for days. Right now I have some that are 9 days old, although the queue is paused. The only limit is the queue size and count (which are not currently enforced).