Skip to content

Instantly share code, notes, and snippets.

@unkleara
Last active January 6, 2021 18:51
Show Gist options
  • Save unkleara/8249607 to your computer and use it in GitHub Desktop.
Save unkleara/8249607 to your computer and use it in GitHub Desktop.
Sidekiq reset stats
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
@tkaboris
Copy link

ok, if i want to reset
Sidekiq.redis {|c| c.del('stat:failed') }

In which directory i should run this command on the server?

@colin-marshall
Copy link

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