Advertisement
Guest User

Untitled

a guest
Nov 27th, 2014
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. cron:
  2. - description: cron test gathering
  3. url: /test/cron
  4. schedule: every 2 minutes from 09:00 to 23:00
  5.  
  6. application: cron_test
  7. version: 1
  8. runtime: python
  9. api_version: 1
  10.  
  11. handlers:
  12. - url: /.*
  13. script: main.py
  14.  
  15. url_map = [ ('/test/cron', test.CronHandler),
  16. ('/error', err.Err404Handler)]
  17.  
  18. application = webapp.WSGIApplication(url_map, debug=False)
  19.  
  20. def main():
  21. wsgiref.handlers.CGIHandler().run(application)
  22.  
  23. if __name__ == "__main__":
  24. main()
  25.  
  26. class CronHandler(webapp.RequestHandler):
  27.  
  28. def get(self):
  29. logging.info("NOTE: CronHandler get request");
  30. return None
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement