We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a4ca02e commit a0cdf95Copy full SHA for a0cdf95
src/charm.py
@@ -2402,6 +2402,7 @@ def _handle_postgresql_restart_need(self) -> None:
2402
except Exception as e:
2403
logger.error(f"Reload patroni call failed! error: {e!s}")
2404
2405
+ time.sleep(2) # Patroni need a bit to set flag on the API
2406
restart_pending = self._patroni.is_restart_pending()
2407
logger.debug(f"Checking if restart pending: {restart_postgresql} or {restart_pending}")
2408
restart_postgresql = restart_postgresql or restart_pending
0 commit comments