Skip to content

Instantly share code, notes, and snippets.

@unkleara
Last active January 6, 2021 18:51
Show Gist options
  • Save unkleara/8249607 to your computer and use it in GitHub Desktop.
Save unkleara/8249607 to your computer and use it in GitHub Desktop.

Revisions

  1. unkleara renamed this gist Jan 4, 2014. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  2. unkleara created this gist Jan 4, 2014.
    8 changes: 8 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,8 @@
    To reset processed jobs:
    Sidekiq.redis {|c| c.del('stat:processed') }

    To reset failed jobs:
    Sidekiq.redis {|c| c.del('stat:failed') }

    To reset statistics:
    Sidekiq::Stats.new.reset