Last active
March 17, 2021 13:17
-
-
Save marciojg/080b9db55919d2219e1bea6a5e48070a to your computer and use it in GitHub Desktop.
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
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