]> git.openstreetmap.org Git - rails.git/blobdiff - app/jobs/application_job.rb
Sketch out how to use the jobs queue for trace insertion and deletion
[rails.git] / app / jobs / application_job.rb
diff --git a/app/jobs/application_job.rb b/app/jobs/application_job.rb
new file mode 100644 (file)
index 0000000..d394c3d
--- /dev/null
@@ -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