mirror of
https://github.com/outbackdingo/patroni.git
synced 2026-08-26 15:40:21 +00:00
More documentation for watch method
This commit is contained in:
+2
-2
@@ -185,8 +185,8 @@ class AbstractDCS:
|
||||
"""If the current node is a master it should just sleep.
|
||||
Any other node should watch for changes of leader key with a given timeout
|
||||
|
||||
:returns: `!True` if you would like reschedule next run of ha cycle
|
||||
"""
|
||||
:param timeout: timeout in seconds
|
||||
:returns: `!True` if you would like to reschedule the next run of ha cycle"""
|
||||
|
||||
sleep(timeout)
|
||||
return False
|
||||
|
||||
Reference in New Issue
Block a user