From e8b2fb112b04d009030a3010e5decdbf2f03d9a9 Mon Sep 17 00:00:00 2001 From: Alexander Kukushkin Date: Thu, 3 Sep 2015 11:50:58 +0200 Subject: [PATCH] It is better to reap childs before running relatively long sleep --- patroni.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/patroni.py b/patroni.py index a15f535b..3be2aa57 100755 --- a/patroni.py +++ b/patroni.py @@ -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():