Skip to content

Instantly share code, notes, and snippets.

@burdandrei
Created November 25, 2015 11:06
Show Gist options
  • Save burdandrei/79221572dacde0a7d90f to your computer and use it in GitHub Desktop.
Save burdandrei/79221572dacde0a7d90f to your computer and use it in GitHub Desktop.
Clear stuck/stale Resque workers?
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