# File lib/genome-lib/threads.rb, line 71 def run @thread = Thread.new do loop do log("Running #{@name} thread") begin @@cloudmutex.synchronize {@runner.run} rescue log($!) log($!.message) end log("Trying #{@name} thread again in #{@freq} seconds") sleep @freq end end end