Jay, Yeah, I need to import a few packages, so I just wrote an empty handler for /_ah/warmup so that the import and compiling happen.
Thanks, Will On Tue, Dec 7, 2010 at 6:00 AM, Jay Young <[email protected]> wrote: > Do you need to import any packages or frameworks in your warm-up load > them into memory, or will that happen regardless when the instance > spins up? > > On Dec 6, 1:28 am, "Nick Johnson (Google)" <[email protected]> > wrote: > > The purpose of warmup requests is to give your app the opportunity to > load > > all the libraries it needs and do any other initialization work required, > > before it serves user-facing requests. If you have a catchall handler, > then > > serving a 404 is probably doing that, but having a do-nothing handler is > > probably a better idea, and ensures the request hits the whole app > pipeline. > > > > -Nick Johnson > > > > > > > > > > > > > > > > > > > > On Sun, Dec 5, 2010 at 5:02 PM, Will <[email protected]> wrote: > > > Hmm, thanks. > > > > > I can live with the log, as long as doing nothing serves the purpose. I > > > prefer less code unless it's absolutely necessary. > > > > > Best, > > > > > Will > > > > > On Sun, Dec 5, 2010 at 10:25 AM, 风笑雪 <[email protected]> wrote: > > > > >> You'd better implement it if you don't want to see it logged as an > > >> error in your dashboard. > > > > >> However, the implementation can be empty: > > > > >> class WarmupHandler(RequestHandler): > > >> def get(self): > > >> pass # or log it by: logging.info('Warmup Request') > > > > >> ---------- > > >> keakon > > > > >> -- > > >> You received this message because you are subscribed to the Google > Groups > > >> "Google App Engine" group. > > >> To post to this group, send email to > [email protected]. > > >> To unsubscribe from this group, send email to > > >> [email protected]<google-appengine%[email protected]><google-appengine%2Bunsubscrib > [email protected]> > > >> . > > >> 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 post to this group, send email to [email protected] > . > > > To unsubscribe from this group, send email to > > > [email protected]<google-appengine%[email protected]><google-appengine%2Bunsubscrib > [email protected]> > > > . > > > For more options, visit this group at > > >http://groups.google.com/group/google-appengine?hl=en. > > > > -- > > Nick Johnson, Developer Programs Engineer, App Engine > > Google Ireland Ltd. :: Registered in Dublin, Ireland, Registration > Number: > > 368047 > > -- > You received this message because you are subscribed to the Google Groups > "Google App Engine" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]<google-appengine%[email protected]> > . > 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 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.
