aboutsummaryrefslogtreecommitdiff
path: root/app/jobs
diff options
context:
space:
mode:
authorhellekin <hellekin@cepheide.org>2020-10-05 14:11:43 +0200
committerhellekin <hellekin@cepheide.org>2020-10-05 14:11:43 +0200
commit8fa725f194b129e11514c2291067576c886c3232 (patch)
tree9695f9f2a311a899a4a4342a8e17a7371876f7e2 /app/jobs
downloadincommon-map-8fa725f194b129e11514c2291067576c886c3232.tar.gz
rails new incommon-map -d postgresql -C -T
Diffstat (limited to 'app/jobs')
-rw-r--r--app/jobs/application_job.rb7
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