This is an automated email from the ASF dual-hosted git repository. astitcher pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/qpid-proton.git
commit e595ce6c3b61b397ab4d48a3c9dfd8daf3c2ffd7 Author: Andrew Stitcher <[email protected]> AuthorDate: Tue Feb 17 12:52:43 2026 -0500 PROTON-1442: [Python] Interactive tx recv example Added callback to note aborted/failed transaction --- python/examples/tx_recv_interactive.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/python/examples/tx_recv_interactive.py b/python/examples/tx_recv_interactive.py index e7626beee..d20ea8f50 100755 --- a/python/examples/tx_recv_interactive.py +++ b/python/examples/tx_recv_interactive.py @@ -47,6 +47,10 @@ class TxRecv(MessagingHandler, TransactionHandler): print("transaction committed") self.container.declare_transaction(self.conn, handler=self) + def on_transaction_commit_failed(self, event): + print("transaction commit failed") + self.container.declare_transaction(self.conn, handler=self) + def on_transaction_aborted(self, event): print("transaction aborted") self.container.declare_transaction(self.conn, handler=self) --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
