Anshul Goyal
Anshul Goyal

Reputation: 77033

Ruby gem for scheduling and managing cron jobs

I have a web application, on which users can schedule different pre defined tasks. The user can schedule these tasks as per his convenience (Say task1 for last_x_hours every Tuesday 12.00 am, and so on)

The feature is just like scheduling cron jobs, however this is automated and happens via rails web app interface.

Is there a ruby gem for this?

I have come across Resque, delayed_jobs and Sidekiq, but they all seem to be for the case when you want to run certain tasks asynchronously.

Also, there is the whenever gem, but it seems to be the ruby way of defining cron jobs.

What I really want is something that can dynamically manipulate cron jobs and add or delete user defined cron jobs at runtime. Am I missing something here?

Upvotes: 0

Views: 368

Answers (1)

techvineet
techvineet

Reputation: 5111

You can checkout the Clockwork ruby gem. Based simple DSL and runner and for more advanced feature check out the Rufus-Scheduler gem.

Upvotes: 1

Related Questions