Specifying retry limit for tasks queued using GAE deferred library

前端 未结 3 955
暗喜
暗喜 2020-12-22 12:04

We are offloading certain time consuming tasks using the GAE deferred library and would like to know how can we set the retry limit for those offloaded tasks. We are running

3条回答
  •  温柔的废话
    2020-12-22 12:29

    According to the documentation

    queue:
    - name: fooqueue
      rate: 1/s
      retry_parameters:
        task_retry_limit: 7
        task_age_limit: 2d
    - name: barqueue
      rate: 1/s
      retry_parameters:
        min_backoff_seconds: 10
        max_backoff_seconds: 200
        max_doublings: 0
    - name: bazqueue
      rate: 1/s
      retry_parameters:
        min_backoff_seconds: 10
        max_backoff_seconds: 200
        max_doublings: 3
    

提交回复
热议问题