rails/activejob/test
Étienne Barrié 142ae54e54 Allow jobs to rescue all exceptions
Before this commit, only StandardError exceptions can be handled by
rescue_from handlers.

This changes the rescue clause to catch all Exception objects, allowing
rescue handlers to be defined for Exception classes not inheriting from
StandardError.

This means that rescue handlers that are rescuing Exceptions outside of
StandardError exceptions may rescue exceptions that were not being
rescued before this change.

Co-authored-by: Adrianna Chang <adrianna.chang@shopify.com>
2021-01-23 08:35:51 -05:00
..
adapters Remove support for Qu gem. 2018-03-19 21:27:16 +01:00
cases Allow jobs to rescue all exceptions 2021-01-23 08:35:51 -05:00
integration Wrap evaluation of db/seeds.rb with the executor 2020-11-18 16:26:20 -06:00
jobs Allow jobs to rescue all exceptions 2021-01-23 08:35:51 -05:00
models [Active Job] rubocop -a --only Layout/EmptyLineAfterMagicComment 2017-07-11 13:12:32 +09:00
support Revert "Work around getaddrinfo deadlock in forked process" 2020-12-06 23:01:56 +09:00
helper.rb Return false when enqueuing a job is aborted 2020-10-30 00:25:31 +00:00