Class: ThreeScale::Backend::BackgroundJob

Inherits:
Object
  • Object
show all
Includes:
Configurable
Defined in:
lib/3scale/backend/background_job.rb

Constant Summary collapse

EMPTY_HOOKS =
[].freeze
Error =
Class.new StandardError

Class Method Summary collapse

Methods included from Configurable

#configuration, #configuration=, included

Class Method Details

.hooksObject

Disable hooks to improve performance. Profiling tests show that some significant CPU resources were consumed sorting and filtering these.



21
22
23
# File 'lib/3scale/backend/background_job.rb', line 21

def hooks
  EMPTY_HOOKS
end

.perform(*args) ⇒ Object



11
12
13
# File 'lib/3scale/backend/background_job.rb', line 11

def perform(*args)
  perform_wrapper(args)
end

.perform_logged(*_args) ⇒ Object



15
16
17
# File 'lib/3scale/backend/background_job.rb', line 15

def perform_logged(*_args)
  raise "This should be overloaded."
end