Skip to content

Instantly share code, notes, and snippets.

@yltsrc
Forked from unkleara/Sidekiq Reset
Created January 25, 2016 13:45
Show Gist options
  • Save yltsrc/390b96f0e0238be204a1 to your computer and use it in GitHub Desktop.
Save yltsrc/390b96f0e0238be204a1 to your computer and use it in GitHub Desktop.
Sidekiq reset stats
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment