Hi everybody and thank you for your help.

I finally managed to workaround my issues. I implemented a similar solution 
to the one described in the Objectify documentation : 
https://code.google.com/p/objectify-appengine/wiki/Queries#Cursor_Example. 
It's also really close to the solution suggested by husayt, except that it 
enqueues a new task to prevent the 10 minutes timeout. I have to compute 
only 300 entities in a task, and then, enqueue a new task (saving the state 
in query parameters or in the blobstore).

This works, but I still can't explain why it fails after ~3 minutes. I'd 
really like to be able to increase the amount of entities computed in one 
pass. Disabling global cache (ofy().cache(false)) and clearing the session 
cache (ofy().clear()) didn't help. Moreover, I couldn't notice any peak in 
my dashbord which could have explained the failure. Still a mistery for me 
:( .

Thank you.
G.

Le mardi 23 juin 2015 20:31:59 UTC+2, nilsl...@gmail.com a écrit :
>
> Hi everybody,
> I have a long task to run under my App Engine application with a lot of 
> computing. But after a while running the task (~2 minutes), it stops and 
> just retries. Obviously, my task restarts from the beginning and cannot end.
> I would like to configure App Engine to run the task until it is finished. 
> I've heard about a 10 minutes limit for the tasks. I guess it should be 
> enough if it didn't retries everytime.
>
> My source code is (hopefully) freely available here : 
> https://github.com/gilbsgilbs/freemobilenetstat-gae . The two tasks under 
> *src/main/java/org/pixmob/freemobile/netstat/gae/web/task* are 
> problematic (since it computes a lot of data). They are pushed the the 
> queue from a cron under 
> *src/main/java/org/pixmob/freemobile/netstat/gae/web/cron/CronServlet.java*
> .
>
> Note that I'm really new to App Engine and that my code might not be 
> optimal. I'm not sure of the exact issue and maybe it is just a memory 
> overflow (which I wouldn't known how to fix).
>
> Thank you !
> G.
>

-- 
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 google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/850b8597-2d37-4483-951b-d8689979ce30%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to