endurox.tpbegin

endurox.tpbegin(timeout: int, flags: int = 0) None

Start global transaction.

For more details see tpbegin(3) C API call.

Raises:

AtmiException

Following error codes may be present:
TPEINVAL - Invalid flags passed.
TPETIME - Transaction manager (tmsrv(8)) timeout out.
TPESVCERR - Transaction manager crashed.
TPEPROTO - Invalid operations sequence.
TPESYSTEM - System error occurred.
TPEOS - Operating system error occurred.

Parameters:
  • timeout (int) – Transaction timeout value in seconds.

  • flags (int) – RFU. Shall be set to 0, which is default value.