Dealing with very long running rake task
问题 I am interested in running a very long running rake task, one that would take hours to complete and I am interested in learning about best practices for dealing with this problem. Possible solutions I have found: Set up a cron job delayed_job resque cron seems like a simple solution to set up, but is it ideal for a very long task? What do you use and what are the advantages/disadvantages of your solution? 回答1: Personally I love Resque, you can use the resque-scheduler gem for dealing with