Run Runnable inside GAE task

54 views
Skip to first unread message

jie lin

unread,
Jan 4, 2021, 5:02:05 AM1/4/21
to Google App Engine
Hi Guys

I start 2 runnable background jobs within a GAE task to fetch external data via https.
Is there any limitation on this approach? This application intermittently throws 500 errors like

com.google.apphosting.runtime.jetty9.JettyLogger warn: http://{app}.appspot.com/task/person/{personId}/update (JettyLogger.java:30) javax.servlet.ServletException: java.lang.ClassCastException: Stack trace intentionally empty, disable using -XX:-OmitStackTraceInFastThrow at com.google.apphosting.runtime.jetty9.AppVersionHandlerMap.handle(AppVersionHandlerMap.java:297) at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:134) at org.eclipse.jetty.server.Server.handle(Server.java:539)

Not sure whether this kinds of error is caused by the approach above. It is running in GAE standard env. with java8 enabled.

thanks

Jerry

goya

unread,
Jan 8, 2021, 9:15:02 AM1/8/21
to Google App Engine
A possible limitation you might encounter is your task taking too long. By default, the HTTP target task handlers time out after 10 minutes. You can increase this value to 30 minutes. 

With GAE targets, the time out depends on the scaling type the target service uses: 10 minutes for automatic, 24 for manual

Reply all
Reply to author
Forward
0 new messages