Rails 8.2 introduces an enhancement to ActiveJob's retry_on that allows retry logic to inspect the actual error object, not just execution count. This enables intelligent retry strategies that can respect API rate limit headers, extract retry hints from exception messages, adapt delays based on HTTP status codes, and make
•5m read time• From codewithrails.com
Table of contents
The Old WayThe New WayPatternsError Classes That Carry ContextCombining with discard_onSort: