endurox.tpresume

endurox.tpresume(tranid: endurox.TPTRANID, flags: int = 0) None

Resume previously suspended global transaction.

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

Raises:

AtmiException

Following error codes may be present:
TPEINVAL - Invalid flags passed.
TPEPROTO - Invalid operations sequence.
TPESYSTEM - System error occurred.
TPEOS - Operating system error occurred.

Parameters:
  • tranid (TPTRANID) – Transaction identifier returned by tpsuspend().

  • flags (int) – Bitwise flags of TPTXNOOPTIM and TPTXTMSUSPEND. default value is 0.

Returns:

tid – Suspend transaction identifier

Return type:

TPTRANID