Feature request: add configurable Proc to run on retry
Opened this issue · 2 comments
bduran82 commented
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.
@qertoip Let us know if you want us to create a Pull Request for this changes to your gem.
giddie commented
Why not open a pull request?