Run function after task retry limit reached google app engine

130 views Asked by At

I have the code like below:

Queue queue = QueueFactory.getDefaultQueue();
queue.add(TaskOptions.Builder.withRetryOptions(
                     RetryOptions.Builder
                             .withTaskRetryLimit(0)));

With this code the task will not retry if not an error. However, what I want to do is run another function call onRetryFailure() when 10 minutes have passed( the maximum time before retry). Any idea how i can do so?

1

There are 1 answers

1
Alex On

It's not very clear under what conditions you want this onRetryFailure() function to run. You could: