pingora icon indicating copy to clipboard operation
pingora copied to clipboard

feat: Implement a shutdown signal listener function

Open gengteng opened this issue 1 year ago • 0 comments

Hi,

In this PR, I've tackled two TODO items related to our server's signal handling for shutdown and upgrade processes:

  1. Centralized Signal Listening: Introduced a function to listen for shutdown signals, streamlining previous scattered logic.
  2. Enhanced Graceful Upgrades: Ensured rapid shutdown signals are considered during upgrades, bolstering the process's reliability.

These changes aim to clarify and refine our approach, potentially aligning with the original design intentions. I'm curious to hear if this matches our design goals or if there's a preferred direction.

Thanks.

gengteng avatar Mar 24 '24 02:03 gengteng