|
1
|
class ApplicationJob < ActiveJob::Base |
|
2
|
# Automatically retry jobs that encountered a deadlock |
|
3
|
# retry_on ActiveRecord::Deadlocked |
|
4
|
|
|
5
|
# Most jobs are safe to ignore if the underlying records are no longer available |
|
6
|
# discard_on ActiveJob::DeserializationError |
|
7
|
end |