Method: Qwirk::ReplyWorker#perform

Defined in:
lib/qwirk/reply_worker.rb

#perform(object) ⇒ Object



24
25
26
27
28
29
30
31
32
33
34
35
36
# File 'lib/qwirk/reply_worker.rb', line 24

def perform(object)
  begin
    response = request(object)
  rescue Exception => e
    on_exception(e)
  else
    impl.send_response(message, config.marshaler.marshal(response))
  end
  post_request(object)
rescue Exception => e
  Qwirk.logger.error("Exception in send_response or post_request: #{e.message}")
  log_backtrace(e)
end