Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I reset my sidekiq counters?

In my sidekiq dashboard, I see on the left a box with the counters

Processed 168 Failed 111 Busy 0 Scheduled 0 Retries 0 Enqueued 0 

How do I reset them all to 0?

like image 880
AgostinoX Avatar asked Apr 05 '13 13:04

AgostinoX


1 Answers

To reset statistics:

Sidekiq::Stats.new.reset

ref: Add reset stats to Web UI summary box and method to API

Also, you can now clear specific stats:

  • single stat by Sidekiq::Stats.new.reset('failed')
  • or multiple stats by Sidekiq::Stats.new.reset('failed', 'processed')

(Thanks https://stackoverflow.com/users/2475008/tmr08c for update)

like image 130
Paul Keen Avatar answered Oct 21 '22 16:10

Paul Keen