gpt4 book ai didi

python - 过期查询和应用引擎

转载 作者:太空狗 更新时间:2023-10-29 18:31:50 24 4
gpt4 key购买 nike

在一个任务中,我正在使用一个查询遍历一组项目。从查询中获取每个实体后,我还执行 URL 请求。遍历大量这些项目后,我看到以下错误:

BadRequestError: The requested query has expired. Please restart it with the last cursor to read more results.

创建查询后的租约是什么?

最佳答案

这个问题可能会阐明您的问题:https://code.google.com/p/googleappengine/issues/detail?id=4432

Even though offline requests can currently live up to 10 minutes (and background instances can live forever) datastore queries can still only live for 30 seconds. We plan to improve this, but since a 'consistent' view of the data is only preserved for a limit period of time, there is an upper bound to how long a query can last (which is < 10 minutes).

...

Instead of running a single long query, consider fetching batches from the query using query cursors.

关于python - 过期查询和应用引擎,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7456296/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com