Best practice for Rails App to run a long task in the background?

后端 未结 14 1492
时光取名叫无心
时光取名叫无心 2020-12-07 20:49

I have a Rails application that unfortunately after a request to a controller, has to do some crunching that takes awhile. What are the best practices in Rails for providin

14条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-07 21:44

    I use Background Job (http://codeforpeople.rubyforge.org/svn/bj/trunk/README) to schedule tasks. I am building a small administration site that allows Site Admins to run all sorts of things you and I would run from the command line from a nice web interface.

提交回复
热议问题