Skip to content

Commit

Permalink
Merge pull request #598 from Aiven-Open/aiqin-quit-main-loop
Browse files Browse the repository at this point in the history
Emit a metric when pghoard quits main loop
  • Loading branch information
alexole authored Sep 29, 2023
2 parents 6e6c70b + dee324f commit c6d3db4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pghoard/pghoard.py
Original file line number Diff line number Diff line change
Expand Up @@ -879,6 +879,7 @@ def run(self):
self.metrics.unexpected_exception(ex, where="pghoard_run")
if self.thread_critical_failure_event.wait(timeout=5.0):
self.log.error("Unexpected critical failure in PGHoard thread. Quitting main loop.")
self.metrics.increase("pghoard.unrecoverable_quit_main_loop_failure")
self.quit()

def write_backup_state_to_json_file(self):
Expand Down

0 comments on commit c6d3db4

Please sign in to comment.