<?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"
	>
<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>Fri, 29 Aug 2008 04:42:34 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5.1</generator>
		<item>
		<title>By: sijo</title>
		<link>http://www.igvita.com/2007/03/29/scheduling-tasks-in-ruby-rails/#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-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-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-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>
	<item>
		<title>By: pamthree</title>
		<link>http://www.igvita.com/2007/03/29/scheduling-tasks-in-ruby-rails/#comment-81677</link>
		<dc:creator>pamthree</dc:creator>
		<pubDate>Mon, 05 Nov 2007 11:48:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.igvita.com/blog/2007/03/29/scheduling-tasks-in-ruby-rails/#comment-81677</guid>
		<description>If i wanted to run a long running task in the background say a pdf generation while allowing the user to navigate to other pages, would the above tasks provide a solution for this?</description>
		<content:encoded><![CDATA[<p>If i wanted to run a long running task in the background say a pdf generation while allowing the user to navigate to other pages, would the above tasks provide a solution for this?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Peter Marks</title>
		<link>http://www.igvita.com/2007/03/29/scheduling-tasks-in-ruby-rails/#comment-81482</link>
		<dc:creator>Peter Marks</dc:creator>
		<pubDate>Sun, 04 Nov 2007 22:51:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.igvita.com/blog/2007/03/29/scheduling-tasks-in-ruby-rails/#comment-81482</guid>
		<description>Thanks for the advice Ilya. My bdrb_server.log file indicates that the server has started without any errors. The last line shows my scheduled_task.rb file loading. Does this mean my worker is registered? Here is transcript of my log if you feel like poking around: http://pastie.caboo.se/114015

Thanks Again,

Peter</description>
		<content:encoded><![CDATA[<p>Thanks for the advice Ilya. My bdrb_server.log file indicates that the server has started without any errors. The last line shows my scheduled_task.rb file loading. Does this mean my worker is registered? Here is transcript of my log if you feel like poking around: <a href="http://pastie.caboo.se/114015" rel="nofollow">http://pastie.caboo.se/114015</a></p>
<p>Thanks Again,</p>
<p>Peter</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ilya Grigorik</title>
		<link>http://www.igvita.com/2007/03/29/scheduling-tasks-in-ruby-rails/#comment-81067</link>
		<dc:creator>Ilya Grigorik</dc:creator>
		<pubDate>Sat, 03 Nov 2007 15:06:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.igvita.com/blog/2007/03/29/scheduling-tasks-in-ruby-rails/#comment-81067</guid>
		<description>Peter, take a close look at the backgroundrb.log and backgroundrb_server.log files. In the latter, make sure your worker is registered and does not crash during the bootup sequence. That's usually the culprit for me!</description>
		<content:encoded><![CDATA[<p>Peter, take a close look at the backgroundrb.log and backgroundrb_server.log files. In the latter, make sure your worker is registered and does not crash during the bootup sequence. That&#8217;s usually the culprit for me!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Peter Marks</title>
		<link>http://www.igvita.com/2007/03/29/scheduling-tasks-in-ruby-rails/#comment-81010</link>
		<dc:creator>Peter Marks</dc:creator>
		<pubDate>Sat, 03 Nov 2007 08:22:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.igvita.com/blog/2007/03/29/scheduling-tasks-in-ruby-rails/#comment-81010</guid>
		<description>Great writeup Ilya. Your example of BackgrounDRB is exactly what I am looking for (the example on Ezra's site is a lot more than I need). 

However, I'm stuck implementing this. I've installed BackgrounDRB 0.2.1, copied backgroundrb_schedules.yml and scheduled_task.rb into their respective directories,  fire up the backgroundrb daemon with "./script/backgroundrb start" and started mongrel. Yet, nothing I put in do_work gets done. Any ideas?

Thanks,

Peter</description>
		<content:encoded><![CDATA[<p>Great writeup Ilya. Your example of BackgrounDRB is exactly what I am looking for (the example on Ezra&#8217;s site is a lot more than I need). </p>
<p>However, I&#8217;m stuck implementing this. I&#8217;ve installed BackgrounDRB 0.2.1, copied backgroundrb_schedules.yml and scheduled_task.rb into their respective directories,  fire up the backgroundrb daemon with &#8220;./script/backgroundrb start&#8221; and started mongrel. Yet, nothing I put in do_work gets done. Any ideas?</p>
<p>Thanks,</p>
<p>Peter</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ilya Grigorik</title>
		<link>http://www.igvita.com/2007/03/29/scheduling-tasks-in-ruby-rails/#comment-71790</link>
		<dc:creator>Ilya Grigorik</dc:creator>
		<pubDate>Tue, 25 Sep 2007 13:35:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.igvita.com/blog/2007/03/29/scheduling-tasks-in-ruby-rails/#comment-71790</guid>
		<description>Ravi, latest BackgrounDRB is *nix only (unfortunately). There's been a lot of talk about a windows version, but as far as I can tell, not much has been actually done about it.</description>
		<content:encoded><![CDATA[<p>Ravi, latest BackgrounDRB is *nix only (unfortunately). There&#8217;s been a lot of talk about a windows version, but as far as I can tell, not much has been actually done about it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ravi Bhushan</title>
		<link>http://www.igvita.com/2007/03/29/scheduling-tasks-in-ruby-rails/#comment-71436</link>
		<dc:creator>Ravi Bhushan</dc:creator>
		<pubDate>Mon, 24 Sep 2007 08:38:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.igvita.com/blog/2007/03/29/scheduling-tasks-in-ruby-rails/#comment-71436</guid>
		<description>Any idea how to install backgroundrb on Windows?</description>
		<content:encoded><![CDATA[<p>Any idea how to install backgroundrb on Windows?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
