mozilla/socorro — pull request #2501 by twobraids (2014-11-26 14:58:40+00:00)
Title: added abandon transaction behavior

the Bugzilla crontabber job uses an Exception for control flow. There is a complicated transaction that is started, but near the end, we can finally recognise that the transaction is not useful. The original code just raised an exception and let the TransactionExecutor roll the transaction back. However, the TransactionExecutor logs it as an error even though it was intentional.

This PR adds the ability for the TransactionExecutor to abandon a transaction if the exception was raised intentionally and has the attribute 'abandon_transaction'.