Module: TraceView::Inst::ResqueJob

Defined in:
lib/traceview/inst/resque.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.included(klass) ⇒ Object



127
128
129
# File 'lib/traceview/inst/resque.rb', line 127

def self.included(klass)
  ::TraceView::Util.method_alias(klass, :fail, ::Resque::Job)
end

Instance Method Details

#fail_with_traceview(exception) ⇒ Object



131
132
133
134
135
136
# File 'lib/traceview/inst/resque.rb', line 131

def fail_with_traceview(exception)
  if TraceView.tracing?
    TraceView::API.log_exception(:resque, exception)
  end
  fail_without_traceview(exception)
end