Skip to content

Instantly share code, notes, and snippets.

@burdandrei
Created February 6, 2018 13:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save burdandrei/376b8974a22efd0a180d75c62011f331 to your computer and use it in GitHub Desktop.
Save burdandrei/376b8974a22efd0a180d75c62011f331 to your computer and use it in GitHub Desktop.
Resque cleanup workers without heartbeat
Resque.workers.each do |w|
w.unregister_worker if w.heartbeat.nil?
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment