Skip to content

Instantly share code, notes, and snippets.

@koppen
Last active December 17, 2025 08:28
Show Gist options
  • Select an option

  • Save koppen/b7e73863efdd93f247cd1764b2b24487 to your computer and use it in GitHub Desktop.

Select an option

Save koppen/b7e73863efdd93f247cd1764b2b24487 to your computer and use it in GitHub Desktop.
Sidekiq console commands

Working with Sidekiq from the rails console

List scheduled jobs

require "sidekiq/api"
Sidekiq::ScheduledSet.new.each { |j| p [j.at, j.display_class, j.display_args] }

List failed jobs

require "sidekiq/api"
Sidekiq::DeadSet.new.each { |j| p [j.jid, j.at, j.display_class, j.item.values_at("error_class", "error_message")] }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment