As per the documentation 
<https://cloud.google.com/appengine/docs/flexible/custom-runtimes/build#lifecycle_events>
 
App Engine sends a SIGTERM signal to your application container running 
within the instance to notify your application that it is about to be 
shutdown.  

You can read from the stdin in Node.js 
<https://nodejs.org/api/process.html#process_signal_events>to run a 
function once the signal is received. Normally you should have 30 seconds 
to receive the signal and complete the function, but this is not guaranteed 
and may be cut short due to unforeseen network and/or resource issues as 
explained in the documentation. 

- Note that Google Groups is for general product discussions. For technical 
support in setting up the shutdown hook it is recommended post your 
detailed questions <https://stackoverflow.com/help/how-to-ask>to Stack 
Overflow <https://cloud.google.com/support/docs/stackexchange>using the 
supported Cloud tags. 

-- 
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 post to this group, send email to [email protected].
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/7bf94804-0d10-4f4a-b7d1-91d23df62c8f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
  • [google-appengine]... Shai Ben-Tovim
    • [google-appen... 'Jordan (Cloud Platform Support)' via Google App Engine

Reply via email to