-
Notifications
You must be signed in to change notification settings - Fork 215
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add an :allow_failure option to the organize method to swallow failure and continue execution #130
Comments
How would it play with rollbacking of a context? Currently it's launched automatically on failure. I thought about passing a copy of a context to an organized interactor. It will complicate things significantly (need to contexts merging will arise) but allows us to isolate failures. |
If |
Hey Steve, your gem is pretty central in our app -- thanks so much! 🥇 In our use-case, we don't foresee a need to call the rollbacks on previously run interactors. We currently have some actions that call interactors in succession precisely because they are irreversible/doesn't make sense to reverse. Kind of like: |
@mikebernardez Great, thank you for the feedback! |
Hey @laserlemon, thanks for your work on this gem. Another use-case for this feature. If you have |
I would love to be able to log and perform other actions on failure, but right now the fail hijacks and ends execution. Thoughts? |
This probably shouldn't hijack
context.fail!
but instead should override the organizer's handling of an individual interactor's failure.The text was updated successfully, but these errors were encountered: