I’ve written an external gem for adding automatic retry support to ActiveJob, activejob-retry. It supports constant/variable backoff, and make it super easy to define a custom backoff strategy. At present it supports Backburner, DelayedJob, Que, and Resque, and could potentially support Sidekiq too. Feels like this could be something ActiveJob supports out of the box in a future version, but thought I’d check here before doing the work to turn it into a PR onto Rails.
Related topics
Topic | Replies | Views | Activity | |
---|---|---|---|---|
[Feature Request] [activejob] Job level response timeouts for active job | 0 | 184 | July 4, 2017 | |
More callbacks/hooks for ActiveJob? | 0 | 153 | December 20, 2014 | |
[Feature Proposal] [ActiveJob] Allow unlimited retry_on attempts | 3 | 936 | March 25, 2021 | |
Retry logic for killed Resque Workers | 0 | 656 | October 21, 2023 | |
Existing PR for better logging of ActiveJob retry/discard? | 0 | 229 | November 9, 2021 |