Last active
January 6, 2021 18:51
-
-
Save unkleara/8249607 to your computer and use it in GitHub Desktop.
Sidekiq reset 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
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 |
In which directory i should run this command on the server?
It can be run from the rails console.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
ok, if i want to reset
Sidekiq.redis {|c| c.del('stat:failed') }
In which directory i should run this command on the server?