mirror of https://github.com/docusealco/docuseal
parent
c407f2f7ff
commit
beb991b2a6
@ -1,19 +1,19 @@
|
|||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
class ApplicationJob < ActiveJob::Base
|
class ApplicationJob < ActiveJob::Base
|
||||||
# include ::NewRelic::Agent::Instrumentation::ControllerInstrumentation
|
include ::NewRelic::Agent::Instrumentation::ControllerInstrumentation
|
||||||
|
|
||||||
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
|
unique :while_executing, on_conflict: :log
|
||||||
|
|
||||||
# def perform(*args)
|
def perform(*args)
|
||||||
# receiver_str, _, message = args.shift.rpartition('.')
|
receiver_str, _, message = args.shift.rpartition('.')
|
||||||
# time = Benchmark.measure do
|
time = Benchmark.measure do
|
||||||
# receiver_str.constantize.send(message, *args)
|
receiver_str.constantize.send(message, *args)
|
||||||
# end
|
end
|
||||||
# Rails.logger.info(
|
Rails.logger.info(
|
||||||
# "Finished #{receiver_str}.#{message}(#{args.map(&:to_s).join(', ')}): #{time}"
|
"Finished #{receiver_str}.#{message}(#{args.map(&:to_s).join(', ')}): #{time}"
|
||||||
# )
|
)
|
||||||
# end
|
end
|
||||||
# add_transaction_tracer :perform, category: :task
|
add_transaction_tracer :perform, category: :task
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
Reference in new issue