What are the defaults for a task queue in AppEngine?

后端 未结 1 1237
栀梦
栀梦 2021-01-15 04:39

Suppose I create a new queue in my queue.yaml file as:

queue:
- name: my_queue

What would be the equivalent queue with all par

相关标签:
1条回答
  • 2021-01-15 04:49

    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.

    0 讨论(0)
提交回复
热议问题