Hi Vinny, Sorry for the late response. I followed some suggestions of yours and have now decided to rather initialize the dataset as a cronjob since that allows more time for a job to be completed. Plus the dataset needs to be continuously updated from the source URL so I could schedule the cron for every X minutes or so.
Thanks! On Thursday, February 19, 2015 at 3:00:12 PM UTC+1, Syed Rizvi wrote: > > Hi, > I have a RESTful service that gets XML data from an external URL, does > some work on it and serves it to its clients. The dataset is initialized in > the init() method and takes > 1 minutes but less than 2 to be initialized > and is naturally supposed to be there before the first client request comes > in. This works on the local machine properly, but not when deployed to GAE. > > I get the DeadlineExceededException even though I have warmup requests > enabled: > <warmup-requests-enabled>true</warmup-requests-enabled> > The URL fetch is not the culprit here since it takes average 10 seconds to > complete the fetch. > > What exactly am I missing? What would be the right way to do it? Here's > what the log says: > > javax.servlet.ServletContext log: unavailable > com.google.apphosting.api.DeadlineExceededException: This request > (4865075fa7d7c4db) started at 2015/02/19 13:38:24.019 UTC and was still > executing at 2015/02/19 13:39:23.816 UTC. > -- 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 http://groups.google.com/group/google-appengine. To view this discussion on the web visit https://groups.google.com/d/msgid/google-appengine/7da5d719-0bec-41b8-9712-7836ea7080e5%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
