Skip to content

Instantly share code, notes, and snippets.

@marciojg
Last active March 17, 2021 13:17
Show Gist options
  • Save marciojg/080b9db55919d2219e1bea6a5e48070a to your computer and use it in GitHub Desktop.
Save marciojg/080b9db55919d2219e1bea6a5e48070a to your computer and use it in GitHub Desktop.
rails c
require 'sidekiq/api'
puts 'remove sheduled - start'
ss = Sidekiq::ScheduledSet.new
ss.select {|scheduled| scheduled['queue'] == 'nome_da_fila' }.map(&:delete)
puts 'remove sheduled - finished'
puts 'remove retry nome_da_fila - start'
ss = Sidekiq::RetrySet.new
ss.select {|r| r['queue'] == 'nome_da_fila' }.map(&:delete)
puts 'remove retry nome_da_fila - finished'
puts 'remove retry nome_da_fila - start'
ss = Sidekiq::RetrySet.new
ss.select {|r| r['queue'] == 'nome_da_fila' }.map(&:delete)
puts 'remove retry nome_da_fila - finished'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment