hackatime/app/jobs/application_job.rb
Mahad Kalam 28fa174861
Add Sentry monitoring for previously unreported errors (#1066)
* Add Sentry monitoring for previously unreported errors

* Fix

* Fixes

* whoops!
2026-03-13 11:06:12 +00:00

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