开发者

Rails 3 and scheduling of repetitive tasks without cron

开发者 https://www.devze.com 2023-03-14 18:49 出处:网络
I have a app and i am currently using delayed_job. I was wondering if there are any recommended gems that do scheduling of repetitive tasks.

I have a app and i am currently using delayed_job. I was wondering if there are any recommended gems that do scheduling of repetitive tasks.

I want to schedule task that happen on a certain frequency to clean the database/sending emails/run other methods. I mite want to run some tasks every day or every hour.

Is there any good ones out there that are fairly easy to setup and config w开发者_开发技巧hich do not use CRON.


You can convert that repetitive work to rakes and call those rakes via cron. For setting cron over server, whenever is nice gem checkout here - http://railscasts.com/episodes/164-cron-in-ruby


there are some very good gems about schedule repetitive tasks i tried delayed job it is simple and easy to use you can watch rails cast to details of using it


You can try rufus-scheduler https://github.com/jmettraux/rufus-scheduler It is an app based scheduler (unless you use it's cron feature).

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号