From 8fa725f194b129e11514c2291067576c886c3232 Mon Sep 17 00:00:00 2001 From: hellekin Date: Mon, 5 Oct 2020 14:11:43 +0200 Subject: rails new incommon-map -d postgresql -C -T --- app/jobs/application_job.rb | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 app/jobs/application_job.rb (limited to 'app/jobs/application_job.rb') 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 -- cgit v1.2.3