Module: Resque::Plugins::TracebinInstrumentation::Job
- Defined in:
- lib/tracebin/background_job_instrumentation/resque.rb
Instance Method Summary collapse
- #after_perform_with_tracebin(*args) {|args| ... } ⇒ Object
- #before_perform_with_tracebin(*args) {|args| ... } ⇒ Object
Instance Method Details
#after_perform_with_tracebin(*args) {|args| ... } ⇒ Object
15 16 17 18 19 20 |
# File 'lib/tracebin/background_job_instrumentation/resque.rb', line 15 def after_perform_with_tracebin(*args) @tracebin_timer.stop! ::Tracebin::PuppetMaster.new(@tracebin_timer, logger: Resque.logger).process yield *args if block_given? end |
#before_perform_with_tracebin(*args) {|args| ... } ⇒ Object
8 9 10 11 12 13 |
# File 'lib/tracebin/background_job_instrumentation/resque.rb', line 8 def before_perform_with_tracebin(*args) @tracebin_timer = ::Tracebin::BackgroundTimer.new @tracebin_timer.start! yield *args if block_given? end |