deislabs / wagi

Write HTTP handlers in WebAssembly with a minimal amount of work
Apache License 2.0
884 stars 45 forks source link

Support SIGTERM for graceful shutdown in containers #182

Open denverdino opened 2 years ago

denverdino commented 2 years ago

Currently, WAGI only support SIGINT/Ctrl - C. It doesn't works well in containers, e.g. Docker or Kubernetes.

I suggest to support SIGTERM in wagi_server.rs