edgenai / edgen

⚡ Edgen: Local, private GenAI server alternative to OpenAI. No GPU required. Run AI models locally: LLMs (Llama2, Mistral, Mixtral...), Speech-to-text (whisper) and many others.
https://docs.edgen.co/
Apache License 2.0
328 stars 15 forks source link

chore: CTRL+C should perform a global shutdown #46

Closed francis2tm closed 7 months ago

francis2tm commented 7 months ago

Right now, CTRL+C is only shutting down edgen_server's thread. While tauri's thread keeps alive

toschoo commented 7 months ago

This is easy to solve: we just have to call exit when serve returns to main. However, we should review the shutdown process. At the moment, there is not way for the tauri GUI to initiate a graceful shutdown. It just exits ignoring whatever is going on in edgen_server.

toschoo commented 7 months ago

solved with PR #56 (issue #8)