def primary_stop_timeout(self) -> Union[int, None]:
        """:returns: "primary_stop_timeout" from the global configuration or `None` when not in synchronous mode."""
        ret = global_config.primary_stop_timeout
        return ret if ret > 0 and self.is_synchronous_mode() else None
:returns: "primary_stop_timeout" from the global configuration or `None` when not in synchronous mode.
patroni/ha.py