Re: Transient error when attempting to add task to queue; fails on retry

68 views
Skip to first unread message

stevep

unread,
Dec 20, 2012, 1:09:32 PM12/20/12
to google-a...@googlegroups.com
I had some TransientError issues when using queues in iterative loops. The fix (workaround) that has eliminated the issue was to nest the iterative queue command inside a try/except. If there is a transient error, the handler does one time.sleep(0.1) command, and retries. If the error re-occurs, then the g.t. one sleep cycle error handling escalates. (And yes, I really, really hated to do burn up 100 cpu millis, but was desperate. Since TEs were infrequent, the overall resource waste proved de minimus.) To date this has fixed my transient errors. Never have had a TE outside of such loops. As with everything, YMMV. HTH -stevep

On Tuesday, December 18, 2012 10:37:31 AM UTC-8, Scott Gress wrote:
Hi all,

At the moment I'm getting TransientError exceptions whenever I try to add a task to a queue in my Python app, using code like:

q = Queue('default')
q.add(Task(url=url, countdown=countdown))

It appears to be happening with every queue, every time--retrying doesn't help.  Has been going on for at least 30 minutes, and blocking important activity on my site.  I haven't done any deployments in the last 4 days; it just started happening on its own.

This is happening in both my production app, "premium-prod-hr" and my staging app "premium-test-hr" on site www.craftlaunch.com.  

Anybody else seeing this?  Any suggestions?

Thanks,

Scott


PK

unread,
Dec 20, 2012, 1:36:53 PM12/20/12
to google-a...@googlegroups.com
Yes, Steve this is good suggestion and standard practice but there was a real issue that day that lasted for hours so these loops timed out. 

PK

--
You received this message because you are subscribed to the Google Groups "Google App Engine" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-appengine/-/Q0N7sJM88hIJ.
To post to this group, send email to google-a...@googlegroups.com.
To unsubscribe from this group, send email to google-appengi...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.

stevep

unread,
Dec 20, 2012, 2:59:51 PM12/20/12
to google-a...@googlegroups.com
Hey PK,

Apologies if my reply suggested I was discounting everyone's recent problems. (Also sorry to learn that my "wasting resources" solution is a good standard practice.) I know many posts here are desperate attempts to alert G. re:system issues. So many of late it has become hard to know when to offer a design suggestion vs. staying quiet so as to let G. receive a cleaner signal from the forum. -stevep
Reply all
Reply to author
Forward
0 new messages