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 https://cloud.google.com/tasks/docs/creating-http-target-tasks#sa https://cloud.google.com/tasks/docs/dual-overview#appe On Monday, January 4, 2021 at 11:02:05 AM UTC+1 [email protected] wrote: > 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 > <http://appspot.com/task/person/%7BpersonId%7D/update> ( > JettyLogger.java:30 > <https://console.cloud.google.com/debug/fromlog?appModule=default&appVersion=1-1-1&file=JettyLogger.java&line=30&logInsertId=5ff0bdaf00076a994f178b9c&logNanos=1609612709345652000&nestedLogIndex=9&project=monash-student-adviser-prod>) > > 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 > -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/google-appengine/a6a0e2e5-9792-4043-b74f-113ca25cc3acn%40googlegroups.com.
