2021-09-26 14:51:13 -07:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
2021-09-26 14:41:38 -07:00
|
|
|
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
|