How to keep an App Engine/Java app running with deaf requests from a Java/Python web cron?

前端 未结 4 1851
失恋的感觉
失恋的感觉 2021-01-14 16:04
  1. App Engine allows you 30 seconds to load your application
  2. My application takes around 30 seconds - sometimes more, sometimes less. I don\'t know how to fix th
4条回答
  •  抹茶落季
    2021-01-14 16:39

    the simplest Java http pinger:

    URLConnection hcon = new URL("http://www.google.com").openConnection();
    hcon.connect();
    hcon.getInputStream().read();
    

提交回复
热议问题