Task Schedulers

6 views
Skip to first unread message

Matt

unread,
Aug 13, 2013, 9:51:17 PM8/13/13
to iowaru...@googlegroups.com
Hey Everyone,

Does anyone have any experiences with a ruby task scheduling framework that they would be willing to share? I know there are a few options out there like whenever and clockwork among others. There are so other projects like resque and delayed job which are similar to what I'm looking for, but not quite. 

For my specific use case I would like to have some process run regularly, maybe hourly or every half hour, and do some stuff, update some data, etc. 

I primarily use Python and a framework called Celery. Celery is a background task framework that allows both synchronous and asynchronous processes as well as periodic tasks which will run on a schedule like cron. Celery also has really nice integration with Django, which is nice, so if whenever or clockwork has good Rails integration, that would be excellent. I really like this approach over cron, because I can just deploy my application and the task scheduling is all handled in the same repo and updated with the same deployment as the rest of my application and I don't have to mess with crontab or any server configuration stuff.

Thanks!
Matt

Levi Rosol

unread,
Aug 13, 2013, 10:19:44 PM8/13/13
to iowaru...@googlegroups.com

If I'm reading your requirements correctly, it seems that resque and resque-scheduler are exactly what you need. Resque alone can handle the one off, or programmatic jobs, and scheduler can handle your time based jobs. Both work really easily with a rails app, but can be successfully integrated with a sinatra app as well. All in the same code base.

Levi Rosol
319.939.2035

--
You received this message because you are subscribed to the Google Groups "Iowa Ruby Brigade Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to iowaruby-tal...@googlegroups.com.
To post to this group, send email to iowaru...@googlegroups.com.
Visit this group at http://groups.google.com/group/iowaruby-talk.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Matthew J. Morrison

unread,
Aug 13, 2013, 10:34:52 PM8/13/13
to iowaru...@googlegroups.com
resque-scheduler was another one that popped up on my radar before whenever and clockwork, but I noticed in the readme on github for resque-scheduler that there was a "help wanted", so I figured that i would keep looking to see if there were other projects that had a more active community. Not to say that resque-scheduler is not a good option, I just wanted to make sure that I was not overlooking a more obvious choice.

Thanks Levi!

--
Matthew J. Morrison

Dan Buettner

unread,
Aug 13, 2013, 10:09:24 PM8/13/13
to iowaru...@googlegroups.com
Matt, I've used whenever and been happy with it. Basically just a DSL for cron but simple and allows managing timing within your codebase instead of on the server. 

-Dan
--
Reply all
Reply to author
Forward
0 new messages