argument --max-dispatches-per-second: invalid float value: '6/m'

天涯浪子 提交于 2019-12-13 03:44:18

问题


I am using cloud tasks, I want to set maxDispatchesPerSecond to 6/m.

when I try to update my app engine queue with below command:

☁  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

How can I to this?


回答1:


The error it's giving you is:

ERROR: (gcloud.beta.tasks.queues.update-app-engine-queue) argument --max-dispatches-per-second: invalid float value: '6/m'

'6/m' isn't a valid value. It requires a floating point value. Compute the value you want, and just enter that number.



来源:https://stackoverflow.com/questions/55098392/argument-max-dispatches-per-second-invalid-float-value-6-m

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!