I rolled my own background job processor using CouchDB. Procfiles and Foreman and the Cedar process model make it very simple. I can even scale up and down using the Heroku API from inside a running Heroku web process; I think the Resque systems I saw described don't allow you to scale down to 0 workers but mine does.
Check the code at https://github.com/alexch/sharebro, especially https://github.com/alexch/sharebro/blob/master/spec/ant_spec.rb https://github.com/alexch/sharebro/blob/master/lib/ant.rb https://github.com/alexch/sharebro/blob/master/work.rb If anyone's interested I could collaborate on pulling it out into yet another gem, but for now it's stuck in this app (and a couple other private ones). For an arguably better system see http://blog.leshill.org/blog/2011/04/03/using-resque-and-resque-scheduler-on-heroku.html https://github.com/ajmurmann/resque-heroku-autoscaler but I didn't want to add Redis and Resque -- I prefer the devil I know cause I created him :-) - A -- You received this message because you are subscribed to the Google Groups "Heroku" group. To view this discussion on the web visit https://groups.google.com/d/msg/heroku/-/M48-ZnFTvG8J. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/heroku?hl=en.
