Skip to content

Commit

Permalink
Merge pull request rails#34087 from frodsan/application_job_suggestions
Browse files Browse the repository at this point in the history
Add retry_on/discard suggestions for common cases to ApplicationJob for new apps.
  • Loading branch information
y-yagi committed Oct 5, 2018
2 parents 9422433 + 1040893 commit 1ceaf7d
Showing 1 changed file with 5 additions and 0 deletions.
@@ -1,2 +1,7 @@
class ApplicationJob < ActiveJob::Base
# Automatically retry jobs that encountered a deadlock
# retry_on ActiveRecord::Deadlocked

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

0 comments on commit 1ceaf7d

Please sign in to comment.