- Building Google Cloud Platform Solutions
- Ted Hunter Steven Porter Legorie Rajan PS
- 104字
- 2021-07-02 12:24:43
Named queues
The App Engine Task Queue provides a single default queue for all App Engine applications. Additional queues may be configured by providing a queue.yaml configuration file. This allows developers to define one or more custom push queues, along with configurations for things like retry logic and rate of execution.
The queue.yaml configuration file is as follows:
queue:
- name: example-one
target: service-one
rate: 10/s
retry_parameters:
task_retry_limit: 5
- name: example-two
target: version-x.service-two
rate: 5/s
The second queue definition target takes the form of <version>.<service>. This format can be used to specify a target version of a given service for tasks to be delivered to.