Skip to content

Instantly share code, notes, and snippets.

@sponomarev
Last active June 30, 2017 20:28
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sponomarev/c9984f6b0b721a79b29e to your computer and use it in GitHub Desktop.
Save sponomarev/c9984f6b0b721a79b29e to your computer and use it in GitHub Desktop.
Reset Sidekiq Stats
# 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