Reputation: 81
As far as I can remember, when an exception occurs during the processing of a task in a task queue, the task stays in the queue and begins retrying. For some reason, none of my tasks are staying in the queue after an error hits. Any ideas of where I can troubleshoot?
Upvotes: 0
Views: 858
Reputation: 176
According to the documentation, for Cloud Tasks queues with App Engine targets, if a different response from 200-299 or no response is sent, the task is retried.
Check your queue current parameters running this command in the Cloud Shell: gcloud tasks queues describe [QUEUE_ID]
.If the retry parameters are not configured according to your needs, you can find how to change them in the documentation.
If this is properly configured, make sure that your failing tasks are not having a 200-299 status code which would take them out of the queue.
Upvotes: 1