问题
Does anyone know of a background job manager that works with Rails 3? I have heard of Starling and Workling but I do not see a fork for Rails 3.
回答1:
I used this article to get delayed_job (a common rails 2 gem for queueing jobs to be done later) running on rails 3. The collectiveidea branch of delayed_job has rails 3 support and works great.
回答2:
Are you looking for a background-job worker ? for simple usage i suggest delayed_job https://github.com/collectiveidea/delayed_job/
Resque instead is more powerfull (It's used for github background job) but complicated. https://github.com/defunkt/resque
bye
回答3:
take a look at the railscast: beanstalkd and stalker: http://railscasts.com/episodes/243-beanstalkd-and-stalker
回答4:
spawn is fine if you just want to run some code in a seperate thread and just forget about it. https://github.com/tra/spawn
来源:https://stackoverflow.com/questions/4783777/background-job-manager-for-rails-3