patroni.postgresql.cancellable module

class patroni.postgresql.cancellable.CancellableExecutor

Bases: object

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

class patroni.postgresql.cancellable.CancellableSubprocess

Bases: CancellableExecutor

call(*args: Any, **kwargs: Union[Any, Dict[str, str]]) Optional[int]
cancel(kill: bool = False) None
property is_cancelled: bool
reset_is_cancelled() None