In this case, you can use a retry strategy. A very good explanation is 
provided here 
<https://cloud.google.com/appengine/docs/standard/python/taskqueue/overview-pull#leasing-tasks>.
 
I recommend to go through it and implement the changes.

On Friday, September 15, 2017 at 9:04:45 AM UTC-4, Jeff O'Neill wrote:
>
> I lease tasks from a pull queue at most once per minute so far less 
> frequently than the limitation of 10 per second described here 
> <https://cloud.google.com/appengine/docs/standard/python/taskqueue/overview-pull>
> .
>
> Despite this, I'm getting a significant number of TransientError in my 
> logs (up to 20/day).  It isn't a huge deal for me, but I thought I'd 
> mention it here in case it merits some looking in to by the GAE folks.
>
> Here is a log example:
>
> Traceback (most recent call last):
>   File ...
>     tasks = q.lease_tasks(300, 100)
>   File 
> "/base/data/home/runtimes/python27/python27_lib/versions/1/google/appengine/api/taskqueue/taskqueue.py",
>  
> line 1897, in lease_tasks
>     return rpc.get_result()
>   File 
> "/base/data/home/runtimes/python27/python27_lib/versions/1/google/appengine/api/apiproxy_stub_map.py",
>  
> line 613, in get_result
>     return self.__get_result_hook(self)
>   File 
> "/base/data/home/runtimes/python27/python27_lib/versions/1/google/appengine/api/taskqueue/taskqueue.py",
>  
> line 1809, in ResultHook
>     raise _TranslateError(e.application_error, e.error_detail)
> TransientError
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/52061650-8d95-4a47-8912-290c1499a1db%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to