Class: Thrifter::Queueing::Job

Inherits:
Object
  • Object
show all
Includes:
Sidekiq::ThriftArguments, Sidekiq::Worker
Defined in:
lib/thrifter/extensions/queueing.rb

Instance Method Summary collapse

Instance Method Details

#perform(klass, method_name, *args) ⇒ Object

NOTE: sidekiq-thrift_arguments does not recurse into arguments. The thrift objects must not be inside an array or other structure. This is why the method has so many arguments. Sidekik-thrift_arguments will correctly pick up any complex type in the splat and handle serialization/deserialization



15
16
17
18
# File 'lib/thrifter/extensions/queueing.rb', line 15

def perform(klass, method_name, *args)
  client = klass.constantize.new
  client.send method_name, *args
end