I am using push task queue from GAE (python). There are times when after X minutes, Y% of the tasks have failed. For this situation, I want to purge the task queue (there is no need to execute them, eventually many will fail).
I can configure for a task to stop executing if it retries more than 2 times, but if I have 100 tasks that failed (300 runs = 100 + 200 retries) how can I stop the remaining tasks to execute?
queue.yaml:
queue:
- name: my-queue
mode: push
rate: 1/s
bucket_size: 10
max_concurrent_requests: 10
retry_parameters:
task_retry_limit: 2