GAE 任务队列异常
我一直在测试任务队列,取得了不同程度的成功。目前我是 使用默认队列、默认设置等......
我有一个测试 URL 设置,它将大约 8 个任务插入队列中。 订单很短,全部8项都顺利完成。到目前为止,一切都很好。
当我在一分钟内重新加载该 URL 两次时,问题就会出现。 现在观察任务队列,所有任务都已正确添加,但是 似乎只有第一批执行。但是“最后一刻奔跑”# 显示正在运行的任务的正确数量......
请求日志讲述了不同的故事。他们只显示第一组 8 个正在运行,但所有任务创建 URL 均成功运行。
奇怪的是,如果我在任务之间等待一分钟 创建 URL 请求,它会正常工作。
奇怪的是,似乎没有改变bucket_size或执行速度 来帮忙。仅执行第一批。我也减少了 请求数一路下降到2,仍然只找到了 第2个执行。添加的任何其他内容都会显示与上述相同的问题。
有什么建议吗?
谢谢
I have been testing the taskqueue with mixed success. Currently I am
using the default queue, in default settings etc etc....
I have a test URL setup which inserts about 8 tasks into the queue.
With short order, all 8 are completed properly. So far so good.
The problem comes up when I re-load that URL twice under say a minute.
Now watching the task queue, all the tasks are added properly, but
only the first batch execute it seems. But the "Run in Last Minute" #
shows the right number of tasks being run....
The request logs tell a different story. They show only the first set
of 8 running, but all task creation URLs working successfully.
The oddness of this is that if I wait say a minute between the task
creation URL requests, it will work fine.
Oddly enough changing the bucket_size or execution speed does not seem
to help. Only the first batch are executed. I have also reduced the
number of requests all the way down to 2, and still found only the
first 2 execute. Any others added display the same issues as above.
Any suggestions?
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
当任务队列以错误结束时:我相信它保留在您的队列中..
检查一下
When a task-queue ends in error : I believe it stays in your queue ..
Check that