l.s.h.TransactionFreeOperation : class documentation

Part of lp.scripts.helpers View In Hierarchy

Ensure that an operation has no active transactions.

This helps ensure that long-running operations do not hold a database transaction. Long-running operations that hold a database transaction may have their database connection killed, and hold locks that interfere with other updates.

Static Method any_active_transactions Undocumented
Class Method __enter__ Undocumented
Class Method __exit__ Undocumented
Class Method require Require that TransactionFreeOperation is used at least once.
@staticmethod
def any_active_transactions():
Undocumented
@classmethod
def __enter__(cls):
Undocumented
@classmethod
def __exit__(cls, exc_type, exc_value, traceback):
Undocumented
@classmethod
@contextlib.contextmanager
def require(cls):
Require that TransactionFreeOperation is used at least once.
API Documentation for Launchpad, generated by pydoctor at 2022-06-16 00:00:12.