From 0929719a845897cc8567cf972e07a69a71f0fa6f Mon Sep 17 00:00:00 2001 From: Star Rauchenberger Date: Thu, 30 Nov 2023 13:29:08 -0500 Subject: Migrate to a full rails app --- app/jobs/application_job.rb | 7 +++++++ app/jobs/wittle/application_job.rb | 4 ---- 2 files changed, 7 insertions(+), 4 deletions(-) create mode 100644 app/jobs/application_job.rb delete mode 100644 app/jobs/wittle/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 diff --git a/app/jobs/wittle/application_job.rb b/app/jobs/wittle/application_job.rb deleted file mode 100644 index b0ab02e..0000000 --- a/app/jobs/wittle/application_job.rb +++ /dev/null @@ -1,4 +0,0 @@ -module Wittle - class ApplicationJob < ActiveJob::Base - end -end -- cgit 1.4.1