Last Updated: September 01, 2018
·
13.94K
· bugthing

Flush Sidekiq's Redis DB

Use Sidekiq? ... got your Redis db in a pickle after screwing about with tests?

This is most simple way I have found to reset the Redis db from the rails console

Sidekiq.redis { |r| puts r.flushall }

Could use the following, but found it sometimes does not clear all batch related stuff (from sidekiq-pro)

rake sidekiq:clear 

1 Response
Add your response

From Mike on twitter:

Sidekiq.redis { |r| puts r.flushdb }

https://twitter.com/mperham/status/895377361922777088

over 1 year ago ·