Skip to content

Instantly share code, notes, and snippets.

@LucasPadovan
Created August 19, 2014 15:20
Show Gist options
  • Save LucasPadovan/c97f1282ced965b3775e to your computer and use it in GitHub Desktop.
Save LucasPadovan/c97f1282ced965b3775e to your computer and use it in GitHub Desktop.
Call this multiple times to delete the stack of the worker
q = Sidekiq::Queue.new('worker_name')
q.each do |j|
j.delete
end
@LucasPadovan
Copy link
Author

Try:
require 'sidekiq/api'
Sidekiq::Queue.new.clear

@LucasPadovan
Copy link
Author

sidekiq -q worker_name
para correr el worker

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment