playframework - How to safely shutdown a Play Framework app -
i want sure request threads have finished processing before play app exits, have 2 questions:
1) signal can send invoke global onstop method? i've used ctrl-d running activator on command line while developing, when deployed, app started , stopped script wants send kill signal stop it. i've tried different signals, none have called onstop. there way?
2) when onstop called, want verify there no request threads running , wait on are. best way this?
thanks!
Comments
Post a Comment