2

I have ruby on rails website,in which I want to perform some task at fixed interval such as 'sending report by email every sunday',for example.
I have examined using whenever gem but since it is wrapper for the *nix utility cron,it may not work on windows.

I am asking for which gem or method to use to do for scheduling such above task that is not depend on underlying platform?

Chirag Rupani
  • 1,675
  • 1
  • 17
  • 37

2 Answers2

2

Both Clockwork and rufus-scheduler (optionally combined with delayed job) are good gems for scheduling tasks.

If you are on torquebox, it already provides a job scheduler based on quartz.

nurettin
  • 11,090
  • 5
  • 65
  • 85
  • I find rufus-scheduler fine and also according to [Ruby toolbox](https://www.ruby-toolbox.com/projects/clockwork) , [clockwork](https://github.com/tomykaira/clockwork) is inactive – Chirag Rupani Oct 22 '12 at 12:19
1

Use WebMin set up. Set the Cron jobs for your application script that you want to execute and run it on the web min server i.e your_ip_address:10000. It is the best way for job scheduling. I used it in most of my project.

Sumit Munot
  • 3,748
  • 1
  • 32
  • 51