deislabs / wagi

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

Handle SIGTERM properly #183

Open denverdino opened 2 years ago

denverdino commented 2 years ago

Signed-off-by: Li Yi denverdino@gmail.com

Fix #182

Tested in Mac/Linux

$ cargo run -- -c examples/modules.toml
    Finished dev [unoptimized + debuginfo] target(s) in 1.03s
     Running `target/debug/wagi -c examples/modules.toml`
No log_dir specified, using temporary directory /var/folders/jh/x0hxxwzn7j7fhmlh3q3k17x40000gp/T/.tmp9evE6D for logs
Ready: serving on http://127.0.0.1:3000

In the separated terminal

$ kill -15 PROCESS_ID
ghost commented 2 years ago

CLA assistant check
All CLA requirements met.

itowlson commented 2 years ago

Sorry for the lack of reply - I've been away. Thanks for this - I'll take a look!