mirror of
https://github.com/outbackdingo/patroni.git
synced 2026-08-26 15:40:21 +00:00
Do not try to fetch xlog_location when async_executor is busy
This commit is contained in:
+1
-1
@@ -59,7 +59,7 @@ class Ha(object):
|
||||
}
|
||||
if self.patroni.tags:
|
||||
data['tags'] = self.patroni.tags
|
||||
if data['state'] in ['running', 'restarting', 'starting']:
|
||||
if not self._async_executor.busy and data['state'] in ['running', 'restarting', 'starting']:
|
||||
try:
|
||||
data['xlog_location'] = self.state_handler.xlog_position()
|
||||
except:
|
||||
|
||||
Reference in New Issue
Block a user