Best current rails background task method?

后端 未结 3 457
醉话见心
醉话见心 2021-02-08 01:11

I am trying to find out the best way to run scripts in the background. I have been looking around and found plenty of options, but many/most seem to have become inactive in the

3条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-02-08 01:52

    Take a look at the gem whenever at https://github.com/javan/whenever.

    It allows you to schedule tasks like cron jobs.

    Works very well under linux, and the last commit was 14 days ago. A friend of mine used it in a project and was pretty satisfied with it.

    edit: take a look at the gem delayed_job as well, it is good for executing long tasks in the background. Useful when creating a cron job only to start other tasks.

提交回复
热议问题