gadreel
gadreel

Reputation: 209

How execute a function every hour and add the results into a database in Rails?

Maybe it's a very simple Question, but I don't know how to solve it. :-) Is it possible that a rails app executes a function every hour which looks i.e. for clients in a network and add this data into a log database?

Do I have to use a cronjob or something like that? Or is there a nice gem in rails or something else? I looked for a solution in google but I didn't find one for this scenario.

Upvotes: 1

Views: 1055

Answers (1)

neon
neon

Reputation: 2821

I like whenever and rufus-scheduler. Both work great.

Upvotes: 2

Related Questions