Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- cron:
- - description: cron test gathering
- url: /test/cron
- schedule: every 2 minutes from 09:00 to 23:00
- application: cron_test
- version: 1
- runtime: python
- api_version: 1
- handlers:
- - url: /.*
- script: main.py
- url_map = [ ('/test/cron', test.CronHandler),
- ('/error', err.Err404Handler)]
- application = webapp.WSGIApplication(url_map, debug=False)
- def main():
- wsgiref.handlers.CGIHandler().run(application)
- if __name__ == "__main__":
- main()
- class CronHandler(webapp.RequestHandler):
- def get(self):
- logging.info("NOTE: CronHandler get request");
- return None
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement