lostboy/workless — pull request #17 by bellowsj (2011-12-21 21:22:42+00:00)
Title: changes to workless

lostboy,

I've spent a couple of days trying to get your gem to work on my local development environment, OS X Lion. I was having issues with the process ending too quickly and therefore leaving a locked entry in the delayed_job database table. It was working fine on heroku but was not working on my local development machine. I've gone ahead and made a few changes so that it works correctly on both heroku and my local development machine now. These changes are based on how Pedro does autoscaling here: https://github.com/pedro/delayed_job/blob/autoscaling/lib/delayed/manager/local.rb and Phaza autoscaling gem here: https://github.com/phaza/Heroku-Delayed-Job-Autoscale/blob/master/lib/heroku_delayed_job_autoscale.rb.

-Jason