From a4d29f635c7c6bec4a15ab43956a2be896b0ff11 Mon Sep 17 00:00:00 2001 From: HombreLaser Date: Mon, 20 Feb 2023 19:52:42 -0600 Subject: Commit inicial --- app/jobs/application_job.rb | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 app/jobs/application_job.rb (limited to 'app/jobs') 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