Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

debugging workers with sidekiq?

I converted from resque to sidekiq gem for my ruby on rails app to have less memory usage and faster response times.

The problem:

  • one of my workers has an error and unlike resque-web the sidekiq-web does not show full details on the error ( like line number and cause of error )
  • I'm unable to properly debug my workers, is there a workaround for this? In terminal I just get something like

error:

  2012-07-12T13:26:19Z 64455 TID-ousyenaqg WARN: undefined method `perform' for #<BookInit:0x007f8c6f73f520>

More precise errors are a must have!

like image 537
Rubytastic Avatar asked Apr 19 '26 20:04

Rubytastic


1 Answers

try change

def self.perform(params...)

to

def perform(params...)
like image 182
englandpost Avatar answered Apr 21 '26 14:04

englandpost



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!