If you are using automatic scaling <https://cloud.google.com/appengine/docs/go/modules/#automatic_scaling_1> (the default) on App Engine, requests <https://cloud.google.com/appengine/docs/go/requests> are limited to a maximum of 60 seconds. This is because these instances are optimized for short lived user requests.
If you need a longer timeout you can 1) use a task queue as a. Kong suggested which can run for up to 10 minutes or 2) switch to manual scaling <https://cloud.google.com/appengine/docs/go/modules/#manual_scaling_1> which can run any kind of request for up to 24 hours. Probably in your case you want to use a task queue, since you can just kick off the task and return success to the user immediately without waiting for processing to finish first. On Wednesday, December 23, 2015 at 1:08:46 PM UTC-5, Dave Greenly wrote: > > We have a Go program running in an App Engine which receives an email and > then does some processing. > > After about 100 seconds, our program stops because we get the following > error: > > 1. > > Process terminated because the request deadline was exceeded. (Error > code 123) > 2. > > > 3. > > I did some research and found this is a deadline so resources are not > consumed for an infinite loop or some other bad situation. > > My question is, how do I respond with a "success" so that I don't get the > deadline exceeded, or, do I have to increase my deadline time? If so, > where/how do I do that. > > What is the best approach for an App Engine. > > Thanks > Dave > -- 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 google-appengine+unsubscr...@googlegroups.com. To post to this group, send email to google-appengine@googlegroups.com. Visit this group at https://groups.google.com/group/google-appengine. To view this discussion on the web visit https://groups.google.com/d/msgid/google-appengine/7217aece-4317-4b4d-ab9f-5ef980984ba4%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.