Project

General

Profile

Task #27995

Add panic detection to exit logharbour consumer process on panic errors

Added by Sachin Divekar about 2 months ago. Updated about 2 months ago.

Status:
Closed
Priority:
Normal
Target version:
-
Start date:
16/06/2025
Due date:
% Done:

100%

Estimated time:

Description

Currently, when a goroutine panicked, the error was only logged but the consumer process continued running.

Modify the error handler to detect panic errors and immediately exit the process with code 1. This will ensure:

  • Panics are not silently ignored
  • The process exits cleanly for orchestrators to restart
  • No partial failure states with dead goroutines

Also available in: Atom PDF