title: How does the warmup service work in python google app engine?
body: <p>Can someone give an example of how the warmup inbound service works in the python runtime of Google App Engine?</p>
  
  <p>I've read this: <a href="http://code.google.com/appengine/docs/python/config/appconfig.html#Inbound_Services" rel="nofollow">http://code.google.com/appengine/docs/python/config/appconfig.html#Inbound_Services</a>, but it doesn't give me much of an example after the GET request is sent (I can't seem to ever pick it up)</p>
  
  <p>My app.yaml looks like this:</p>
  
  <pre><code>application: whatevs
  version: 1
  runtime: python
  api_version: 1
  
  builtins:
  - datastore_admin: on
  
  inbound_services:
  - warmup
  
  handlers:
  - url: /static
    static_dir: static
  
  - url: /_ah/warmup
    script: main.py
    login: admin 
  
  - url: /.*
    script: main.py
  </code></pre>
  
  <p>my main.py looks like this:</p>
  
  <pre><code>def main():
      application = webapp.WSGIApplication(
                       [("/", views.LandingPage),
                        ("/_ah/warmup", views.WarmupHandler)
                        ],
                       debug=True)
      run_wsgi_app(application)
  </code></pre>
  
  <p>WarmupHandler looks like this:</p>
  
  <pre><code>class WarmupHandler(webapp.RequestHandler):
      """
      Called on app init
      """
      def get(self):
          current_user = users.get_current_user()
          return
  </code></pre>
  
  <p>However, WarmupHandler never seems to get called (I have breakpoints and lots of debug code). What am I doing wrong?</p>