Created
February 6, 2018 13:51
-
-
Save burdandrei/376b8974a22efd0a180d75c62011f331 to your computer and use it in GitHub Desktop.
Resque cleanup workers without heartbeat
This file contains hidden or 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
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