Skip to content

Commit 08ba627

Browse files
author
avandras
committed
Ignore on_shutdown() signature mismatch
1 parent 3d0ebb5 commit 08ba627

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

patroni/ha.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1628,7 +1628,8 @@ def before_shutdown() -> None:
16281628
self.release_leader_key_voluntarily(checkpoint_location)
16291629
time.sleep(2) # Give a time to somebody to take the leader lock
16301630
if mode == 'multisite':
1631-
self.patroni.multisite.on_shutdown(self.state_handler.latest_checkpoint_location(), None)
1631+
self.patroni.multisite.on_shutdown(
1632+
self.state_handler.latest_checkpoint_location(), None) # pyright: ignore [reportArgumentType]
16321633
if mode_control['offline']:
16331634
node_to_follow, leader = None, None
16341635
else:

0 commit comments

Comments
 (0)