OdbDesign icon indicating copy to clipboard operation
OdbDesign copied to clipboard

feat: add heartbeat feature to auto-terminate program on failure

Open wen2so opened this issue 5 months ago • 4 comments

Detect heartbeat status every 5 seconds. If no heartbeat is received within 5 seconds, the program will exit automatically.

Implements: #424

wen2so avatar Jul 17 '25 03:07 wen2so

consider add an args param to enable or disable this feature

wen2so avatar Jul 17 '25 03:07 wen2so

Considering that this C++ program is intended to be used as a library and invoked by programs written in other languages, and given that in a standalone deployment (without container management tools like Docker), the C++ program must terminate synchronously if the calling program crashes or exits unexpectedly — to avoid running as an orphaned process — a heartbeat mechanism is therefore required.

wen2so avatar Sep 09 '25 07:09 wen2so