patroni.postgresql.cancellable module

class patroni.postgresql.cancellable.CancellableExecutorView on GitHub

Bases: object

There must be only one such process so that AsyncExecutor can easily cancel it.

__init__() NoneView on GitHub
_kill_children() NoneView on GitHub
_kill_process() NoneView on GitHub
_start_process(cmd: List[str], *args: Any, **kwargs: Any) bool | NoneView on GitHub

This method must be executed only when the _lock is acquired

class patroni.postgresql.cancellable.CancellableSubprocessView on GitHub

Bases: CancellableExecutor

__init__() NoneView on GitHub
call(*args: Any, **kwargs: Any | Dict[str, str]) int | NoneView on GitHub
cancel(kill: bool = False) NoneView on GitHub
property is_cancelled: bool
reset_is_cancelled() NoneView on GitHub