AppEngine中的任务队列的默认值是什么? [英] What are the defaults for a task queue in AppEngine?
问题描述
假设我在 queue.yaml
文件中创建一个新队列为:
queue:
- name:my_queue
所有参数指定?
以下是我可以从 docs 。
队列:
- name: my_queue
mode:push
bucket_size:5
target:<与入队任务相同的版本>
汇率:???
max_concurrent_requests:???
retry_parameters:
task_retry_limit:???
task_age_limit:???
min_backoff_seconds:???
max_backoff_seconds:???
max_doublings:???
您能帮我填补空白吗?
模式:push
bucket_size:5
target:<与入队任务相同的版本>
rate:5
max_concurrent_requests:∞
retry_parameters:
task_retry_limit:∞
task_age_limit:∞
min_backoff_seconds:0.1
max_backoff_seconds:3600.0
max_doublings:16
费率记录在 here。
我从taskqueue_service_pb .py,您可以在python SDK中找到它,其中有一个名为 TaskQueueRetryParameters
的类,如下所示:
class TaskQueueRetryParameters(ProtocolBuffer.ProtocolMessage):
has_retry_limit_ = 0
retry_limit_ = 0
has_age_limit_sec_ = 0
age_limit_sec_ = 0
has_min_backoff_sec_ = 0
min_backoff_sec_ = 0.1
has_max_backoff_sec_ = 0
max_backoff_sec_ = 3600.0
has_max_doublings_ = 0
max_doublings_ = 16
task_retry_limit
和 task_age_limit
设置为0 - 换句话说,没有限制。同样的 max_concurrent_requests
,它在另一个名为 TaskQueueUpdateQueueRequest
的类中定义。
Suppose I create a new queue in my queue.yaml
file as:
queue:
- name: my_queue
What would be the equivalent queue with all parameters specified?
Here's what I could gather from the docs so far.
queue:
- name: my_queue
mode: push
bucket_size: 5
target: <the same version that enqueued the task>
rate: ???
max_concurrent_requests: ???
retry_parameters:
task_retry_limit: ???
task_age_limit: ???
min_backoff_seconds: ???
max_backoff_seconds: ???
max_doublings: ???
Can you help me fill in the gaps?
My best stab at this is
queue:
- name: my_queue
mode: push
bucket_size: 5
target: <the same version that enqueued the task>
rate: 5
max_concurrent_requests: ∞
retry_parameters:
task_retry_limit: ∞
task_age_limit: ∞
min_backoff_seconds: 0.1
max_backoff_seconds: 3600.0
max_doublings: 16
The rate is documented here.
The rest of the numbers I got from taskqueue_service_pb.py, which you will find in the python SDK, where there is a class called TaskQueueRetryParameters
, which looks like this:
class TaskQueueRetryParameters(ProtocolBuffer.ProtocolMessage):
has_retry_limit_ = 0
retry_limit_ = 0
has_age_limit_sec_ = 0
age_limit_sec_ = 0
has_min_backoff_sec_ = 0
min_backoff_sec_ = 0.1
has_max_backoff_sec_ = 0
max_backoff_sec_ = 3600.0
has_max_doublings_ = 0
max_doublings_ = 16
task_retry_limit
and task_age_limit
are set to 0 - in other words, there is no limit. Same for max_concurrent_requests
, which is defined in another class called TaskQueueUpdateQueueRequest
.
这篇关于AppEngine中的任务队列的默认值是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!