6

I am running Pyramid using pyramid_tm and pyramid_mailer. I am catching the following traceback by a Sentry logging service:

Stacktrace (most recent call last):

  File "transaction/_transaction.py", line 374, in _callAfterCommitHooks
    rm.abort(self)
  File "/srv/pyramid/trees/venv/lib/python3.4/site-packages/repoze/sendmail/delivery.py", line 119, in abort
    raise ValueError("TPC in progress")

As you can seen, the traceback does not contain much information and I am not sure what this is related to and what TPC in progress means. I assume this is somehow related to transaction after commit hooks, sending out email and I guess with few after commit hooks in place the transaction state is somehow unexpected.

  • What does this mean?

  • Why the traceback does not disclose more information? Is it running in a separate thread?

Mikko Ohtamaa
  • 82,057
  • 50
  • 264
  • 435
  • I found two instances of "TPC in progress" in the source for [repoze.sendmail](https://github.com/repoze/repoze.sendmail/blob/master/repoze/sendmail/delivery.py#L119-L142). Perhaps that has a clue? – Steve Piercy Nov 30 '15 at 23:25

0 Answers0