Created
November 25, 2015 11:06
-
-
Save burdandrei/79221572dacde0a7d90f to your computer and use it in GitHub Desktop.
Clear stuck/stale Resque workers?
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
hostname = '' | |
Resque.workers.each { |w| w.unregister_worker if w.id.start_with?(hostname) } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment