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

后端 未结 14 1494
时光取名叫无心
时光取名叫无心 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:30

    Calling ./script/runner in the background worked best for me. (I was also doing PDF generation.) It seems like the lowest common denominator, while also being the simplest to implement. Here's a write-up of my experience.

提交回复
热议问题