Open bduran82 opened 5 years ago
In our case we need to run custom code every time a transaction error is caught and retried in order to log differently the raised error.
For this reason we forked this project in here to implement a configurable lambda proc:
TransactionRetry.before_retry = ->(retry_num, error) { ... }
that runs when an TransactionIsolationConflict error is caught just before retrying.
In addition to this we upgraded some dependencies and make it possible to configure retry_on globally.
retry_on
@qertoip Let us know if you want us to create a Pull Request for this changes to your gem.
Why not open a pull request?
Opened pull request #10
In our case we need to run custom code every time a transaction error is caught and retried in order to log differently the raised error.
For this reason we forked this project in here to implement a configurable lambda proc:
that runs when an TransactionIsolationConflict error is caught just before retrying.
In addition to this we upgraded some dependencies and make it possible to configure
retry_on
globally.@qertoip Let us know if you want us to create a Pull Request for this changes to your gem.