开发者

Ruby checking rss feed every X minutes

开发者 https://www.devze.com 2023-03-06 12:42 出处:网络
I have a simple app that fetches an RSS feed and downloads some data. How can I get my ruby app to check the RSS feed every X minutes? should I just wrap all the code in a loop wi开发者_开发知识库th a

I have a simple app that fetches an RSS feed and downloads some data. How can I get my ruby app to check the RSS feed every X minutes? should I just wrap all the code in a loop wi开发者_开发知识库th a sleep?


If you like the old unix stuff, you should use cron. A nice Ruby alternative is clockwork (which is way easier to configure).


You can use Cron if you work with Linux or Task Scheduler in case of Windows.

0

精彩评论

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

关注公众号