gefcig
Last Updated: September 01, 2018
·
6.809K
· 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

29182

From Mike on twitter:

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

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

over 1 year ago ·