argument --max-dispatches-per-second: invalid floa

2019-08-27 16:54发布

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条回答
一纸荒年 Trace。
2楼-- · 2019-08-27 17:45

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.

查看更多
登录 后发表回答