-
-
Save dochoaj/c3d4ab9edaef45cfbf35f87484ddad78 to your computer and use it in GitHub Desktop.
Revisions
-
wbotelhos revised this gist
Apr 6, 2017 . 1 changed file with 12 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -13,3 +13,15 @@ Sidekiq::Stats.new.reset # 3. Clear 'Dead' jobs statistics Sidekiq::DeadSet.new.clear # Via API require 'sidekiq/api' stats = Sidekiq::Stats.new stats.queues # {"production_mailers"=>25, "production_default"=>1} queue = Sidekiq::Queue.new('queue_name') queue.count queue.clear -
wbotelhos created this gist
Apr 6, 2017 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,15 @@ # 1. Clear retry set Sidekiq::RetrySet.new.clear # 2. Clear scheduled jobs Sidekiq::ScheduledSet.new.clear # 3. Clear 'Processed' and 'Failed' jobs Sidekiq::Stats.new.reset # 3. Clear 'Dead' jobs statistics Sidekiq::DeadSet.new.clear