solid_queue
solid_queue copied to clipboard
Add section for exception handling
@rosa : I have added the documentation as discussed in #120. Let me know your feedback.
Why not use rescue_from
instead? As stated in the Active Job guide
@brunoprietog : Thanks for the input. I have updated the PR.
Nice! Now it looks much cleaner
Also... I need to look a bit deeper into this, but I'm not sure using around_perform
as it was used before, and rescue_from
is fully equivalent. In the first case, we're scoping the block where an exception is captured to the perform
method, and in the second case, we can rescue any exception even if it happens outside perform
🤔 I'm not sure if this makes a difference, I'd need to dig deeper into it, it's just that it's not completely obvious to me that these are equivalent.
@rosa : Good point. I too will have a look.