diff --git a/patroni.py b/patroni.py
index <HASH>..<HASH> 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():
It is better to reap childs before running relatively long sleep