Laurent Pellegrino <[email protected]> Apr 21 07:38AM -0700 wrote:
> I am running a task which iterates on Entities retrieved from a query
> performed with Objectify. For each entity I iterate on, I update some fields
> and then I save it to the datastore. If the task gets near 10 min I submit a
> new task with a cursor set to the last entity iterated on. When the task is
> submitted, it runs very well during about 50 sec and then the following
> exception is raised. I have no idea why I am getting this exception.
> However, I have notice that if I allows a maximum execution time of 25
> seconds approximately all works very well and no exception is raised.
>
> Does the maximum execution time for a task en-queued into a queue is limited
> to 30 sec and not 10 min?

The task itself can run for 10 minutes. But a single datastore query
only lives for 30 seconds. If you want to incrementally collect
results over more than a 30 second period, you need to get a cursor
and restart the query from there.

--
David Gay - AppEngine
[email protected]

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
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-java?hl=en.

Reply via email to