additionals/app/jobs/additionals_job.rb

18 lines
467 B
Ruby
Raw Normal View History

# frozen_string_literal: true
if Additionals.redmine6?
class AdditionalsJob < ApplicationJob
end
else
class AdditionalsJob < ActiveJob::Base
# Automatically retry jobs that encountered a deadlock
# retry_on ActiveRecord::Deadlocked
2019-10-13 16:29:39 +02:00
# Most jobs are safe to ignore if the underlying records are no longer available
# discard_on ActiveJob::DeserializationError
include Additionals::JobWrapper
around_enqueue :keep_current_user
end
2019-10-13 16:29:39 +02:00
end