We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 749f519 commit 4376756Copy full SHA for 4376756
app/jobs/application_job.rb
@@ -6,7 +6,9 @@ class ApplicationJob < ActiveJob::Base
6
retry_on ActiveRecord::Deadlocked
7
8
# Retry on HTTP errors
9
- retry_on HTTPX::HTTPError, wait: HTTP_5XX_RETRY_DELAY
+ retry_on(HTTPX::HTTPError, wait: HTTP_5XX_RETRY_DELAY) do |job, error|
10
+ # Do not raise the error on the final retry
11
+ end
12
13
# Most jobs are safe to ignore if the underlying records are no longer available
14
discard_on ActiveJob::DeserializationError
0 commit comments