Last active
June 30, 2017 20:28
-
-
Save sponomarev/c9984f6b0b721a79b29e to your computer and use it in GitHub Desktop.
Reset Sidekiq Stats
This file contains 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 characters
# Reset processed counter | |
Sidekiq.redis { |c| c.del('stat:processed') } | |
# Reset failed counter | |
Sidekiq.redis { |c| c.del('stat:failed') } | |
# Reset all redis database with counters, history and current queues | |
Sidekiq.redis { |c| c.flushdb } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment