Rails 5 + ActiveJob + Sidekiq: Stop and log error after 10 retries

Viewed 1135

Trying to program a job that after 10 retries (from all exception types) will report a failure and die. Can't get it to work. Tried this answer and this one too. Neither worked. The best solution would be to access retry_count from within the perform method.

1 Answers
Related