Node.js Google云任务队列RateLimits配置被忽略
我们正在创建一个设置了速率限制配置的Google云任务队列(v2beta3),但是该速率限制配置被忽略,而是使用Google默认值:Node.js Google云任务队列RateLimits配置被忽略,node.js,google-cloud-platform,google-cloud-tasks,Node.js,Google Cloud Platform,Google Cloud Tasks,我们正在创建一个设置了速率限制配置的Google云任务队列(v2beta3),但是该速率限制配置被忽略,而是使用Google默认值: cloud_tasks_res = await tasksClient.createQueue({ parent: `projects/PROJECT-ID/locations/LOCATION`, queue: { name: `projects/PROJECT-ID/locations/LOCATION/queues/myqueue`,
cloud_tasks_res = await tasksClient.createQueue({
parent: `projects/PROJECT-ID/locations/LOCATION`,
queue: {
name: `projects/PROJECT-ID/locations/LOCATION/queues/myqueue`,
rateLimits: {
maxTasksDispatchedPerSecond: 100,
maxConcurrentTasks: 50
},
retryConfig: {
maxAttempts: 150,
maxRetryDuration: { seconds: 0, nanos: 0 },
minBackoff: { seconds: 15, nanos: 0 },
maxBackoff: { seconds: 43200, nanos: 0 },
maxDoublings: 13
}
}
});
当cloud\u tasks\u res
返回时:
[
{
name: `projects/PROJECT-ID/locations/LOCATION/queues/myqueue`,
purgeTime: null,
rateLimits: {
maxBurstSize: 100,
maxConcurrentDispatches: 1000,
maxDispatchesPerSecond: 500
},
retryConfig: {
maxAttempts: 150,
maxBackoff: { nanos: 0, seconds: "43200" },
maxDoublings: 13,
maxRetryDuration: null,
minBackoff: { nanos: 0, seconds: "15" }
},
stackdriverLoggingConfig: null,
state: "RUNNING"
},
undefined,
undefined
]
根据我们如何完成的文档,它看起来是正确的:
您没有正确指定字段:
maxTasksDispatchedPerSecond
需要是maxDispatchesPerSecond
maxConcurrentTasks
必须是maxConcurrentDispatches
您没有正确指定字段:
maxTasksDispatchedPerSecond
需要是maxDispatchesPerSecond
maxConcurrentTasks
必须是maxConcurrentDispatches
非常感谢!!!因此,如果您从th2v2beta3文档页面开始,然后单击一个链接,它会将您带到使用不同变量名称的v2beta2页面。。。(在上面的链接中,我已将其更正为beta3,并没有考虑到它将我带到了错误的页面!)只有左侧的导航链接将您更改为错误的版本。作为参考,我创建了一个问题跟踪器来纠正这个问题:感谢您添加这个问题。很抱歉给您带来了困惑。非常感谢您!!!因此,如果您从th2v2beta3文档页面开始,然后单击一个链接,它会将您带到使用不同变量名称的v2beta2页面。。。(在上面的链接中,我已将其更正为beta3,并没有考虑到它将我带到了错误的页面!)只有左侧的导航链接将您更改为错误的版本。作为参考,我创建了一个问题跟踪器来纠正这个问题:感谢您添加这个问题。我很抱歉搞混了。