Skip to content

Instantly share code, notes, and snippets.

@kirpachov
Last active December 5, 2023 22:36
Show Gist options
  • Save kirpachov/62d437a5f620da92832c4b499e46b06b to your computer and use it in GitHub Desktop.
Save kirpachov/62d437a5f620da92832c4b499e46b06b to your computer and use it in GitHub Desktop.

Try this in your rails console with rails c:

Sidekiq.redis{|r| r.get("stat:processed") }

some_data = Sidekiq.redis { |conn|
    conn.pipelined do
    conn.get("stat:processed")
    conn.get("stat:failed")
    conn.zcard("schedule")
    conn.zcard("retry")
    conn.zcard("dead")
    conn.scard("processes")
    conn.lrange("queue:default", -1, -1)
  end
}

 Sidekiq.redis{|r| r.clear }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment