App Engine's request handlers put a hard limit on how quickly the code must respond and if that is exceeded it internally throws an exception. This will result in a 500 error to the http caller and this can't be caught by your GAE code and it cannot be overridden. This is one of the tradeoffs when using a PaaS. If more control is desired/needed so your software is on a more general web server, you'll need to use something like Kubernetes or Compute Engine.
Task queues / cron / cloud tasks can take substantially longer and are dependent on the type of GAE instance. In some cases the max time is 10 minutes, in other cases I believe it can go 24 hours. Regardless, if the work can be broken up in the task/cron so it detects when it is nearing some limit, it can save some info about where it was and re-schedule itself to run again. -Larry On Fri, Jan 31, 2020 at 7:59 AM Patrice B <patrice.bertrand...@gmail.com> wrote: > Thank you for your time. I do understand that task queues and cron jobs > may need a longer timeout value. > > My question really is this : is there no way to configure an instance in > such a way that HTTP requests are killed on timeout after say 10 minutes ? > > And if there is no way to achieve this, as seems to be the case, then how > would you suggest to protect an instance against a request that would keep > running forever ? Should be start a timer and attempt to handle timeout > manually ? > > > -- > 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 view this discussion on the web visit > https://groups.google.com/d/msgid/google-appengine/cbc75d76-591f-4f58-bff3-42d6fe0b8b4c%40googlegroups.com > <https://groups.google.com/d/msgid/google-appengine/cbc75d76-591f-4f58-bff3-42d6fe0b8b4c%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- ____ Larry Schiefer M: 469-263-9388 email: larry.schie...@hiqes.com http://www.hiqes.com -- 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 view this discussion on the web visit https://groups.google.com/d/msgid/google-appengine/CAEOXmpKtm2K57XvCs%2Bud8C6wb%3Dd_vtFg%3DbTjPD4zcBwQvL5nvw%40mail.gmail.com.