Created
December 11, 2012 23:56
-
-
Save pfeiffer/4263522 to your computer and use it in GitHub Desktop.
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
Resque.workers.each do |worker| | |
worker.unregister_worker if Time.parse(worker.started) < 1.day.ago | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment