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 ebd226f commit f992231Copy full SHA for f992231
app/jobs/application_job.rb
@@ -8,6 +8,9 @@ class ApplicationJob < ActiveJob::Base
8
# Retry on HTTP errors
9
retry_on HTTPX::HTTPError, wait: HTTP_5XX_RETRY_DELAY
10
11
+ # We ignore invalid JSON (which is often just HTML from error pages and/or misconfigured web servers
12
+ discard_on JSON::ParserError
13
+
14
# Most jobs are safe to ignore if the underlying records are no longer available
15
discard_on ActiveJob::DeserializationError
16
end
0 commit comments