0

我正在使用cloud tasks,我想设置maxDispatchesPerSecond6/m.

当我尝试使用以下命令更新我的应用程序引擎队列时:

☁  rate-limit [master] ⚡  gcloud beta tasks queues update-app-engine-queue cloud-tasks-rate-limit --max-dispatches-per-second='6/m'
ERROR: (gcloud.beta.tasks.queues.update-app-engine-queue) argument --max-dispatches-per-second: invalid float value: '6/m'
Usage: gcloud beta tasks queues update-app-engine-queue QUEUE [optional flags]
  optional flags may be  --clear-max-attempts | --clear-max-backoff |
                         --clear-max-concurrent-dispatches |
                         --clear-max-dispatches-per-second |
                         --clear-max-doublings | --clear-max-retry-duration |
                         --clear-min-backoff | --clear-routing-override |
                         --help | --max-attempts | --max-backoff |
                         --max-concurrent-dispatches |
                         --max-dispatches-per-second | --max-doublings |
                         --max-retry-duration | --min-backoff |
                         --routing-override

For detailed information on this command and its flags, run:
  gcloud beta tasks queues update-app-engine-queue --help

我怎么能这样?

4

1 回答 1

1

它给你的错误是:

错误:(gcloud.beta.tasks.queues.update-app-engine-queue)参数--max-dispatches-per-second:无效的浮点值:'6/m'

'6/m' 不是有效值。它需要一个浮点值。计算你想要的值,然后输入那个数字。

于 2019-03-12T02:55:47.290 回答