diff options
author | Ben Harris <ben@tilde.team> | 2021-08-21 19:30:19 -0400 |
---|---|---|
committer | Ben Harris <ben@tilde.team> | 2021-08-21 19:30:33 -0400 |
commit | 819a3edae405227f11283ad494a7f4ca9c771467 (patch) | |
tree | 8da57ee1777f992f4f13879795916615009f6a53 /app/jobs/application_job.rb |
init
Diffstat (limited to 'app/jobs/application_job.rb')
-rw-r--r-- | app/jobs/application_job.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/app/jobs/application_job.rb b/app/jobs/application_job.rb new file mode 100644 index 0000000..d394c3d --- /dev/null +++ b/app/jobs/application_job.rb @@ -0,0 +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 |