Is there a way to disable the retry options for tasks that failed? Its not possible to do this in queue.yaml
retry_parameters:
task_retry_limit: 0
Is there any other option to disable retries?
Is there a way to disable the retry options for tasks that failed? Its not possible to do this in queue.yaml
retry_parameters:
task_retry_limit: 0
Is there any other option to disable retries?
If setting task_retry_limit to 0, you can try checking for the task queue header X-AppEngine-TaskRetryCount
, and aborting if it's non-zero.
Setting task_retry_limit
to zero appears to be allowed as of SDK version 1.7.5.
The following queue.yaml
was accepted:
queue:
- name: default
rate: 5/s
retry_parameters:
task_retry_limit: 0
task_age_limit: 1s
However, it is not obeyed.
In the latest version - 1.4.3 it needs to be greater than zero
Trying to upload 0 gives you this...
Error 400: --- begin server output --- Invalid queue configuration. Task retry limit must be greater than zero. --- end server output ---