mirror of
https://github.com/System-End/hackatime.git
synced 2026-04-19 19:55:16 +00:00
12 lines
423 B
Ruby
12 lines
423 B
Ruby
class ApplicationJob < ActiveJob::Base
|
|
include ErrorReporting
|
|
|
|
# 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
|
|
|
|
# Discard jobs that exceed concurrency limits
|
|
discard_on GoodJob::ActiveJobExtensions::Concurrency::ConcurrencyExceededError
|
|
end
|