Created
July 28, 2018 16:22
-
-
Save JuanCrg90/a380286d647ea4ea836899f4b13ae4e6 to your computer and use it in GitHub Desktop.
bundle exec rails runner "eval(File.read 'drop_queues.rb')"
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
# bundle exec rails runner "eval(File.read 'drop_queues.rb')" | |
queues = Delayed::Job.all.map(&:queue).uniq | |
Delayed::Job.where(queue: queues).destroy_all |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi