We released a small gem that allows to define cronjob tasks inside rails applications.
Most web applications often require to perform tasks in a periodical manner. It might be some kind of a cleanup process, sending status mails or whatever the application needs to be done again and again to keep alive.
One common way is to define rake tasks inside the rails application and then use the unix crontab to tell the system when these tasks should be executed. This does not feel like an elegant solution. You often end up with a cluttered crontab and have to synchronize the crontab with the application. It's getting even worse with multiple applications running on the same machine.
Cronjobber gem allows you to define the tasks and their execution timepoints together in one place. You still need the crontab for heartbeating the application, but it cleans up the crontab and makes the application better maintainable.
Das sagen die Anderen:
Michel Beitel
Alex Gräfenstein