mirror of
https://github.com/outbackdingo/patroni.git
synced 2026-09-01 00:59:24 +00:00
Handle KeyboardInterrupt in the main loop
This commit is contained in:
@@ -87,6 +87,8 @@ def main():
|
||||
try:
|
||||
governor.initialize()
|
||||
governor.run()
|
||||
except KeyboardInterrupt:
|
||||
pass
|
||||
finally:
|
||||
governor.touch_member(300) # schedule member removal
|
||||
governor.postgresql.stop()
|
||||
|
||||
Reference in New Issue
Block a user