It is better to reap childs before running relatively long sleep

This commit is contained in:
Alexander Kukushkin
2015-09-03 11:50:58 +02:00
parent a670b598f4
commit e8b2fb112b
+1 -1
View File
@@ -92,8 +92,8 @@ class Patroni:
self.ha.state_handler.drop_replication_slots()
except:
logger.exception('Exception when changing replication slots')
self.schedule_next_run()
reap_children()
self.schedule_next_run()
def main():