<?xml version="1.0" encoding="utf-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	>
<channel>
	<title>Comments on: Scheduling tasks in Ruby / Rails</title>
	<atom:link href="http://www.igvita.com/2007/03/29/scheduling-tasks-in-ruby-rails/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.igvita.com/2007/03/29/scheduling-tasks-in-ruby-rails/</link>
	<description>A goal is a dream with a deadline.</description>
	<pubDate>Sun, 05 Jul 2009 02:47:04 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: schedule jobs with ruby &#124; keyongtech</title>
		<link>http://www.igvita.com/2007/03/29/scheduling-tasks-in-ruby-rails/comment-page-1/#comment-162429</link>
		<dc:creator>schedule jobs with ruby &#124; keyongtech</dc:creator>
		<pubDate>Thu, 22 Jan 2009 08:08:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.igvita.com/blog/2007/03/29/scheduling-tasks-in-ruby-rails/#comment-162429</guid>
		<description>[...] windows scheduled jobs as i am having issue with it.  You may want to take a look at this article http://www.igvita.com/2007/03/29/sch...in-ruby-rails/  [...]</description>
		<content:encoded><![CDATA[<p>[...] windows scheduled jobs as i am having issue with it.  You may want to take a look at this article <a href="http://www.igvita.com/2007/03/29/sch...in-ruby-rails/" rel="nofollow">http://www.igvita.com/2007/03/29/sch&#8230;in-ruby-rails/</a>  [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John Mettraux</title>
		<link>http://www.igvita.com/2007/03/29/scheduling-tasks-in-ruby-rails/comment-page-1/#comment-141493</link>
		<dc:creator>John Mettraux</dc:creator>
		<pubDate>Wed, 22 Oct 2008 07:07:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.igvita.com/blog/2007/03/29/scheduling-tasks-in-ruby-rails/#comment-141493</guid>
		<description>Karthik,

the best place to ask questions about rufus-scheduler (ex openwferu-scheduler) is at http://groups.google.com/group/rufus-ruby

Best regards,

John</description>
		<content:encoded><![CDATA[<p>Karthik,</p>
<p>the best place to ask questions about rufus-scheduler (ex openwferu-scheduler) is at <a href="http://groups.google.com/group/rufus-ruby" rel="nofollow">http://groups.google.com/group/rufus-ruby</a></p>
<p>Best regards,</p>
<p>John</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Karthik</title>
		<link>http://www.igvita.com/2007/03/29/scheduling-tasks-in-ruby-rails/comment-page-1/#comment-141491</link>
		<dc:creator>Karthik</dc:creator>
		<pubDate>Wed, 22 Oct 2008 06:58:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.igvita.com/blog/2007/03/29/scheduling-tasks-in-ruby-rails/#comment-141491</guid>
		<description>Thanks. Your post was really helpful. I used OpenWFEru gem for my requirement. But I have made it as a stand-alone ruby code. But I want it to run with my rails application. When I put the rb file in config/initializers, the server is not getting started because of this scheduler. Am I doing anything wrong? Or is there any other good way to achieve this?</description>
		<content:encoded><![CDATA[<p>Thanks. Your post was really helpful. I used OpenWFEru gem for my requirement. But I have made it as a stand-alone ruby code. But I want it to run with my rails application. When I put the rb file in config/initializers, the server is not getting started because of this scheduler. Am I doing anything wrong? Or is there any other good way to achieve this?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alfie</title>
		<link>http://www.igvita.com/2007/03/29/scheduling-tasks-in-ruby-rails/comment-page-1/#comment-141038</link>
		<dc:creator>Alfie</dc:creator>
		<pubDate>Thu, 16 Oct 2008 20:04:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.igvita.com/blog/2007/03/29/scheduling-tasks-in-ruby-rails/#comment-141038</guid>
		<description>Great, thanks.  What I was looking for more in that question was where to put the .rb file that I write.  I have since found that I should put it into the config/initializers folder and it works great.  Thanks again for your help.</description>
		<content:encoded><![CDATA[<p>Great, thanks.  What I was looking for more in that question was where to put the .rb file that I write.  I have since found that I should put it into the config/initializers folder and it works great.  Thanks again for your help.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ilya Grigorik</title>
		<link>http://www.igvita.com/2007/03/29/scheduling-tasks-in-ruby-rails/comment-page-1/#comment-140988</link>
		<dc:creator>Ilya Grigorik</dc:creator>
		<pubDate>Thu, 16 Oct 2008 03:27:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.igvita.com/blog/2007/03/29/scheduling-tasks-in-ruby-rails/#comment-140988</guid>
		<description>Alfie, you have to instantiate / write some Ruby code to get rufus-scheduler to work. Take a look at one of the examples in my original post. Unlike cron, or other utilities, it's not a command line utility. (Though cron is definitely a viable alternative)</description>
		<content:encoded><![CDATA[<p>Alfie, you have to instantiate / write some Ruby code to get rufus-scheduler to work. Take a look at one of the examples in my original post. Unlike cron, or other utilities, it&#8217;s not a command line utility. (Though cron is definitely a viable alternative)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alfie</title>
		<link>http://www.igvita.com/2007/03/29/scheduling-tasks-in-ruby-rails/comment-page-1/#comment-140642</link>
		<dc:creator>Alfie</dc:creator>
		<pubDate>Sat, 11 Oct 2008 20:33:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.igvita.com/blog/2007/03/29/scheduling-tasks-in-ruby-rails/#comment-140642</guid>
		<description>I found John's rufus-scheduler gem and I seem to understand how the code works, but what I don't understand is where you put it and how you ensure that it is running.  I was originally performing update tasks manually with custom rake tasks, but I'd like to schedule them.

The task is to update a few database tables from parsed text files that change daily.

Thanks for the write-up.  It has already answered a lot of questions for this beginner.</description>
		<content:encoded><![CDATA[<p>I found John&#8217;s rufus-scheduler gem and I seem to understand how the code works, but what I don&#8217;t understand is where you put it and how you ensure that it is running.  I was originally performing update tasks manually with custom rake tasks, but I&#8217;d like to schedule them.</p>
<p>The task is to update a few database tables from parsed text files that change daily.</p>
<p>Thanks for the write-up.  It has already answered a lot of questions for this beginner.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sijo</title>
		<link>http://www.igvita.com/2007/03/29/scheduling-tasks-in-ruby-rails/comment-page-1/#comment-104920</link>
		<dc:creator>sijo</dc:creator>
		<pubDate>Fri, 04 Jul 2008 04:17:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.igvita.com/blog/2007/03/29/scheduling-tasks-in-ruby-rails/#comment-104920</guid>
		<description>For scheduling what I am doing is to write a task and call it periodically using cron</description>
		<content:encoded><![CDATA[<p>For scheduling what I am doing is to write a task and call it periodically using cron</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ilya Grigorik</title>
		<link>http://www.igvita.com/2007/03/29/scheduling-tasks-in-ruby-rails/comment-page-1/#comment-101427</link>
		<dc:creator>Ilya Grigorik</dc:creator>
		<pubDate>Sun, 10 Feb 2008 20:42:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.igvita.com/blog/2007/03/29/scheduling-tasks-in-ruby-rails/#comment-101427</guid>
		<description>Hmm, very cool. Haven't seen the CronEdit gem before!</description>
		<content:encoded><![CDATA[<p>Hmm, very cool. Haven&#8217;t seen the CronEdit gem before!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: viz</title>
		<link>http://www.igvita.com/2007/03/29/scheduling-tasks-in-ruby-rails/comment-page-1/#comment-101395</link>
		<dc:creator>viz</dc:creator>
		<pubDate>Thu, 07 Feb 2008 22:14:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.igvita.com/blog/2007/03/29/scheduling-tasks-in-ruby-rails/#comment-101395</guid>
		<description>Sometimes the old good *nix Cron jobs can be just the right thing. And instead of writing external scripts (as you noted) you can use &lt;a href="http://cronedit.rubyforge.org/" rel="nofollow"&gt;CronEdit&lt;/a&gt; gem. Basically, it provides CRUD  for cron jobs comfortably from within your code.</description>
		<content:encoded><![CDATA[<p>Sometimes the old good *nix Cron jobs can be just the right thing. And instead of writing external scripts (as you noted) you can use <a href="http://cronedit.rubyforge.org/" rel="nofollow">CronEdit</a> gem. Basically, it provides CRUD  for cron jobs comfortably from within your code.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ilya Grigorik</title>
		<link>http://www.igvita.com/2007/03/29/scheduling-tasks-in-ruby-rails/comment-page-1/#comment-83348</link>
		<dc:creator>Ilya Grigorik</dc:creator>
		<pubDate>Fri, 09 Nov 2007 01:14:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.igvita.com/blog/2007/03/29/scheduling-tasks-in-ruby-rails/#comment-83348</guid>
		<description>Peter, I would add a number of calls to 'logger.info' within your workers to ensure that the tasks are not crashing. Basically, see if you can get any response from backgroundrb. Likewise, double check your config in your Rails app. BackgrounDRB can be rather picky when it comes  down to syntax. 

Pamthree, yes indeed, that's exactly what any of the above solutions are designed for. Anytime you need to do an asynchronous request/task, you should use a separate thread and/or process.</description>
		<content:encoded><![CDATA[<p>Peter, I would add a number of calls to &#8216;logger.info&#8217; within your workers to ensure that the tasks are not crashing. Basically, see if you can get any response from backgroundrb. Likewise, double check your config in your Rails app. BackgrounDRB can be rather picky when it comes  down to syntax. </p>
<p>Pamthree, yes indeed, that&#8217;s exactly what any of the above solutions are designed for. Anytime you need to do an asynchronous request/task, you should use a separate thread and/or process.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
