It is Python 2.5.
Also, I should mention that the job in question uses cursors with a double
loop to get around the 1-minute query timeout. This used to fail around 1%
of the time with the backend termination error, but in the past 2-3 days
this has increased to 75% failure rate.
q = db.GqlQuery(queryStr)
cursor = None
while True:
q.with_cursor(cursor)
results = q.fetch(300)
if len(results) == 0:
break
cursor = q.cursor()
for p in results:
# Do something with each result
On Monday, September 10, 2012 2:02:00 AM UTC+5:30, Amy Unruh wrote:
>
> hi,
>
> As a data point, what runtime are your backends using?
>
>
> On 9 September 2012 19:57, Lokesh Setia <[email protected]<javascript:>
> > wrote:
>
>> Hi all,
>>
>> Our (dynamic) backend instances get terminated midway through a job with
>> the error:
>>
>> Process terminated because the backend took too long to shutdown.
>>
>>
>>
>> I know this has been discussed before with the suggestion to take care of
>> this with a shutdown hook, but *what is happening since a couple of days
>> is that this error is coming almost every few minutes* rather than few
>> days, and to run a batch job of say an hour duration, has become all but
>> impossible, not to mention the extra bills for whatever times we have to
>> retry.
>>
>> Will appreciate any help on this. Here is a snippet of the log if it
>> helps anyone:
>>
>>
>> 1.
>>
>> 23.XX.XXX.88 - - [09/Sep/2012:02:38:39 -0700] "GET
>> /analytics/XXXXXXXXXX?max_results=30000 HTTP/1.1" 500 0 - "curl/7.24.0
>> (x86_64-redhat-linux-gnu) libcurl/7.24.0 NSS/3.12.10.0 zlib/1.2.3
>> libidn/1.18 libssh2/1.2.2" "tasks.XXX-XXX-XXX.appspot.com" ms=555289
>> cpu_ms=125258 pending_ms=174 exit_code=114 instance=0
>>
>> 2. E2012-09-09 15:08:39.514
>>
>> Process terminated because the backend took too long to shutdown.
>>
>>
>> --
>> 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/-/efAJ5dtNMogJ.
>> To post to this group, send email to
>> [email protected]<javascript:>
>> .
>> To unsubscribe from this group, send email to
>> [email protected] <javascript:>.
>> For more options, visit this group at
>> http://groups.google.com/group/google-appengine?hl=en.
>>
>
>
--
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/-/bROf5kjdu00J.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-appengine?hl=en.