在拉取任务队列时出现INVALID_REQUEST错误。

huangapple go评论76阅读模式
英文:

INVALID_REQUEST error in pull taskqueues

问题

我正在使用Appengine的Go语言版本中的拉取队列,当我在本地租用任务时一切正常,但是当我部署我的代码后,调用taskqueue.Lease时出现了以下错误:

API错误13(taskqueue: INVALID_REQUEST)

我的租用调用是:

tasks, err := taskqueue.Lease(ctx, 100, "pullqueue", 60)

而且无论我传入什么参数,比如空队列名称的参数,都会出现这个错误。有其他人遇到过这个错误吗?提前感谢您的帮助!

英文:

I'm using a pull queue in Appengine for Go and while locally leasing tasks worked just fine, when I deployed my code, the call to taskqueue.Lease gave me this error:

API error 13 (taskqueue: INVALID_REQUEST)

My lease call was:

tasks, err := taskqueue.Lease(ctx, 100, "pullqueue", 60)

And it has happened no matter what parameters I pass in, like parameters for a blank queue name. Has anyone else gotten this error? Thanks in advance for the help!

答案1

得分: 0

在我的实际代码中,我本来想租用2000个任务,但实际上我最多只能租用1000个任务。

英文:

Nvm in my real code I was leasing 2000 tasks but the max I can lease is actually 1000.

huangapple
  • 本文由 发表于 2016年1月13日 02:23:01
  • 转载请务必保留本文链接:https://go.coder-hub.com/34751121.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定