Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion app/jobs/application_job.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ class ApplicationJob < ActiveJob::Base
retry_on ActiveRecord::Deadlocked

# Retry on HTTP errors
retry_on HTTPX::HTTPError, wait: HTTP_5XX_RETRY_DELAY
retry_on(HTTPX::HTTPError, wait: HTTP_5XX_RETRY_DELAY) do |job, error|
# Do not raise the error on the final retry
end

# Most jobs are safe to ignore if the underlying records are no longer available
discard_on ActiveJob::DeserializationError
Expand Down