I have a Python GAE app.
I want my tasks to stop running or just retry once if they fail. Right now, they run forever despite what my yaml file is telling them!
I had the same problem, strangely it seems to start working fine after I left it as is for few hours... Perhaps there is some time needed for GAE to refresh??
Anyway, the settings worked for me are:
# configure the default queue
- name: default
rate: 1/s
retry_parameters:
# task will stop retrying ONLY when BOTH LIMITS ARE REACHED
task_retry_limit: 1
task_age_limit: 1s
You should set task_retry_limit
to be zero if you don't want it retried at all, and you need to use this in combination with task_age_limit
. The appengine task queue retry logic uses a combination of task_try_limit
and task_age_limit
to determine when to stop retrying.
I had the same problem. The documentation and tooling in this area is lacking, but here's what I found:
task_retry_limit=0
, then it still retries.task_retry_limit=0
and task_age_limit
is set, then the queue.yaml is rejected with a message that task_retry_limit
must be positive.task_age_limit=0
.task_retry_limit=1
and task_age_limit=1s
(apparently the minimum values), you still get one retry.