4 ms·
Is there any way to run background processes in the Java version of GAE?
by fiaz 17y ago
Is there any way to run background processes in the Java version of GAE?
- asmithmd1 17y agoNo, there is no threading. A thread starts in response to an HTTP GET or POST, returning the result, then dieing.
- mshafrir 17y agoYes. http://code.google.com/appengine/docs/java/config/cron.html http://code.google.com/appengine/docs/java/config/cron.html
- anamax 17y ago"A URL invoked by cron is subject to the same limits and quotas as a normal HTTP request, including the request time limit." The request time limit is 30 seconds. Yes, that means that you have to break your background processing in to 30 second chunks. The GAE team is promising better support for background processing "soon".
- mshafrir 17y agoI find that despite this limitation, there are clever/elegant ways to work around it. In general, look to increase the frequency of a job while decreasing the amount of "work" done per cycle.