|
|
|
@ -1,10 +1,12 @@
|
|
|
|
# frozen_string_literal: true
|
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
require 'benchmark'
|
|
|
|
|
|
|
|
|
|
|
|
class ApplicationJob < ActiveJob::Base
|
|
|
|
class ApplicationJob < ActiveJob::Base
|
|
|
|
include ::NewRelic::Agent::Instrumentation::ControllerInstrumentation
|
|
|
|
include ::NewRelic::Agent::Instrumentation::ControllerInstrumentation
|
|
|
|
|
|
|
|
unique :while_executing, on_conflict: :log
|
|
|
|
|
|
|
|
|
|
|
|
retry_on StandardError, wait: 6.seconds, attempts: 5 unless Docuseal.multitenant?
|
|
|
|
retry_on StandardError, wait: 6.seconds, attempts: 5 unless Docuseal.multitenant?
|
|
|
|
unique :while_executing, on_conflict: :log
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def perform(*args)
|
|
|
|
def perform(*args)
|
|
|
|
receiver_str, _, message = args.shift.rpartition('.')
|
|
|
|
receiver_str, _, message = args.shift.rpartition('.')
|
|
|
|
|