<?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: Ruby Background Tasks with Starling &#8211; Part 3</title>
	<atom:link href="http://davedupre.com/2008/04/01/ruby-background-tasks-with-starling-part-3/feed/" rel="self" type="application/rss+xml" />
	<link>http://davedupre.com/2008/04/01/ruby-background-tasks-with-starling-part-3/</link>
	<description>Some random thoughts - Go big or stay home!</description>
	<lastBuildDate>Sun, 06 Jun 2010 08:59:17 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>By: Replacing Mongrel with Passenger (mod_rails) &#187; Big Dave&#8217;s Blog</title>
		<link>http://davedupre.com/2008/04/01/ruby-background-tasks-with-starling-part-3/comment-page-1/#comment-561</link>
		<dc:creator>Replacing Mongrel with Passenger (mod_rails) &#187; Big Dave&#8217;s Blog</dc:creator>
		<pubDate>Mon, 23 Mar 2009 13:35:33 +0000</pubDate>
		<guid isPermaLink="false">http://davedupre.com/2008/04/01/ruby-background-tasks-with-starling-part-3/#comment-561</guid>
		<description>[...] bother with it since I have a bunch of recipes for Apache and Mongrel (see a previous posts about background tasks with Workling). The other day, I figured I would give it a shot. Now, I think I found my new way to deploy Rails [...]</description>
		<content:encoded><![CDATA[<p>[...] bother with it since I have a bunch of recipes for Apache and Mongrel (see a previous posts about background tasks with Workling). The other day, I figured I would give it a shot. Now, I think I found my new way to deploy Rails [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave</title>
		<link>http://davedupre.com/2008/04/01/ruby-background-tasks-with-starling-part-3/comment-page-1/#comment-525</link>
		<dc:creator>Dave</dc:creator>
		<pubDate>Tue, 17 Mar 2009 02:26:52 +0000</pubDate>
		<guid isPermaLink="false">http://davedupre.com/2008/04/01/ruby-background-tasks-with-starling-part-3/#comment-525</guid>
		<description>No problem. Glad I could help.</description>
		<content:encoded><![CDATA[<p>No problem. Glad I could help.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jason</title>
		<link>http://davedupre.com/2008/04/01/ruby-background-tasks-with-starling-part-3/comment-page-1/#comment-524</link>
		<dc:creator>Jason</dc:creator>
		<pubDate>Tue, 17 Mar 2009 01:58:36 +0000</pubDate>
		<guid isPermaLink="false">http://davedupre.com/2008/04/01/ruby-background-tasks-with-starling-part-3/#comment-524</guid>
		<description>wow, my unix sucks. i didn&#039;t realise you could assign sudo privileges for a specific command only - awesome!

I added:
myappuser ALL= NOPASSWD: /usr/local/bin/god

into /etc/sudoers and bingo - god in a capfile - thanks dave!</description>
		<content:encoded><![CDATA[<p>wow, my unix sucks. i didn&#8217;t realise you could assign sudo privileges for a specific command only &#8211; awesome!</p>
<p>I added:<br />
myappuser ALL= NOPASSWD: /usr/local/bin/god</p>
<p>into /etc/sudoers and bingo &#8211; god in a capfile &#8211; thanks dave!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave</title>
		<link>http://davedupre.com/2008/04/01/ruby-background-tasks-with-starling-part-3/comment-page-1/#comment-522</link>
		<dc:creator>Dave</dc:creator>
		<pubDate>Mon, 16 Mar 2009 23:47:43 +0000</pubDate>
		<guid isPermaLink="false">http://davedupre.com/2008/04/01/ruby-background-tasks-with-starling-part-3/#comment-522</guid>
		<description>Not sure how to do that with god.rb. What I normally do is give sudo access to the production account but ONLY for the god application. Combine that with no ssh passwords (public/private key auth), and I feel pretty good about things.

There are other monitoring applications that may do what you&#039;re thinking, however, but I haven&#039;t spent too much time looking.</description>
		<content:encoded><![CDATA[<p>Not sure how to do that with god.rb. What I normally do is give sudo access to the production account but ONLY for the god application. Combine that with no ssh passwords (public/private key auth), and I feel pretty good about things.</p>
<p>There are other monitoring applications that may do what you&#8217;re thinking, however, but I haven&#8217;t spent too much time looking.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jason</title>
		<link>http://davedupre.com/2008/04/01/ruby-background-tasks-with-starling-part-3/comment-page-1/#comment-521</link>
		<dc:creator>Jason</dc:creator>
		<pubDate>Mon, 16 Mar 2009 22:54:12 +0000</pubDate>
		<guid isPermaLink="false">http://davedupre.com/2008/04/01/ruby-background-tasks-with-starling-part-3/#comment-521</guid>
		<description>Great post,
One question - I don&#039;t really like the idea of giving sudo access to my application account in production ie:
*  it would be nice if your deploy script didn&#039;t use sudo for god commands. 

I wonder if theres a way to configure god.config to monitor the applications &#039;current&#039; (deployed) directory in order to trigger it&#039;s workling restart? Monitoring ports might work for mongrel but not phusion passenger. Any ideas on how to do that?</description>
		<content:encoded><![CDATA[<p>Great post,<br />
One question &#8211; I don&#8217;t really like the idea of giving sudo access to my application account in production ie:<br />
*  it would be nice if your deploy script didn&#8217;t use sudo for god commands. </p>
<p>I wonder if theres a way to configure god.config to monitor the applications &#8216;current&#8217; (deployed) directory in order to trigger it&#8217;s workling restart? Monitoring ports might work for mongrel but not phusion passenger. Any ideas on how to do that?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave</title>
		<link>http://davedupre.com/2008/04/01/ruby-background-tasks-with-starling-part-3/comment-page-1/#comment-344</link>
		<dc:creator>Dave</dc:creator>
		<pubDate>Wed, 04 Feb 2009 19:13:12 +0000</pubDate>
		<guid isPermaLink="false">http://davedupre.com/2008/04/01/ruby-background-tasks-with-starling-part-3/#comment-344</guid>
		<description>I have the same thing in my Inquisix app. User can upload 1000&#039;s of contacts, and that process can take a while. Once the file is received, the user is informed that they will get a message/email sent to them when the process is complete.</description>
		<content:encoded><![CDATA[<p>I have the same thing in my Inquisix app. User can upload 1000&#8242;s of contacts, and that process can take a while. Once the file is received, the user is informed that they will get a message/email sent to them when the process is complete.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nanda</title>
		<link>http://davedupre.com/2008/04/01/ruby-background-tasks-with-starling-part-3/comment-page-1/#comment-342</link>
		<dc:creator>Nanda</dc:creator>
		<pubDate>Wed, 04 Feb 2009 18:42:13 +0000</pubDate>
		<guid isPermaLink="false">http://davedupre.com/2008/04/01/ruby-background-tasks-with-starling-part-3/#comment-342</guid>
		<description>Ok thanks, got the info I needed. In our app, there are couple tasks that take 5-10 mins and there could be situation where users invoke the task(from different pages) in short span of time. Anyway, we might just have to educate users that wait time may vary. :)</description>
		<content:encoded><![CDATA[<p>Ok thanks, got the info I needed. In our app, there are couple tasks that take 5-10 mins and there could be situation where users invoke the task(from different pages) in short span of time. Anyway, we might just have to educate users that wait time may vary. <img src='http://davedupre.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave</title>
		<link>http://davedupre.com/2008/04/01/ruby-background-tasks-with-starling-part-3/comment-page-1/#comment-341</link>
		<dc:creator>Dave</dc:creator>
		<pubDate>Wed, 04 Feb 2009 18:17:36 +0000</pubDate>
		<guid isPermaLink="false">http://davedupre.com/2008/04/01/ruby-background-tasks-with-starling-part-3/#comment-341</guid>
		<description>The threading model I implemented created a thread per worker class, not per task. I wanted to create a balance between workers not stepping on each other and creating too many threads. In most cases, when you have a job that takes 5-10 minutes to run, you don&#039;t want to have more than one executing at a time anyway. It is often more efficient to run things serially in that case. What I wanted to avoid, however, is the single 10 minute task preventing the hundreds of 100 millisecond tasks from running.</description>
		<content:encoded><![CDATA[<p>The threading model I implemented created a thread per worker class, not per task. I wanted to create a balance between workers not stepping on each other and creating too many threads. In most cases, when you have a job that takes 5-10 minutes to run, you don&#8217;t want to have more than one executing at a time anyway. It is often more efficient to run things serially in that case. What I wanted to avoid, however, is the single 10 minute task preventing the hundreds of 100 millisecond tasks from running.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nanda</title>
		<link>http://davedupre.com/2008/04/01/ruby-background-tasks-with-starling-part-3/comment-page-1/#comment-340</link>
		<dc:creator>Nanda</dc:creator>
		<pubDate>Wed, 04 Feb 2009 18:04:52 +0000</pubDate>
		<guid isPermaLink="false">http://davedupre.com/2008/04/01/ruby-background-tasks-with-starling-part-3/#comment-340</guid>
		<description>Dave,
One more question, so you had added threaded functionality to the workling base code right? Is there anything particular we need to specify in workling.yml or sth to ensure its threaded. Basically, even for the same profile(app), say i have campaign_worker.rb, and the task there takes say 5/10 mins to run. What&#039;s happening now is when i invoke a campaign task thru app, it seems to wait if there is another campaign task already running in the workling. Ideally, we would want to fork another thread forr each of the task, any thoughts on what we might be missing here. Thanks!</description>
		<content:encoded><![CDATA[<p>Dave,<br />
One more question, so you had added threaded functionality to the workling base code right? Is there anything particular we need to specify in workling.yml or sth to ensure its threaded. Basically, even for the same profile(app), say i have campaign_worker.rb, and the task there takes say 5/10 mins to run. What&#8217;s happening now is when i invoke a campaign task thru app, it seems to wait if there is another campaign task already running in the workling. Ideally, we would want to fork another thread forr each of the task, any thoughts on what we might be missing here. Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave</title>
		<link>http://davedupre.com/2008/04/01/ruby-background-tasks-with-starling-part-3/comment-page-1/#comment-298</link>
		<dc:creator>Dave</dc:creator>
		<pubDate>Thu, 18 Dec 2008 17:27:38 +0000</pubDate>
		<guid isPermaLink="false">http://davedupre.com/2008/04/01/ruby-background-tasks-with-starling-part-3/#comment-298</guid>
		<description>Very interesting. I have not used the namespace option with memcache, but it sounds like it would do the trick as well.</description>
		<content:encoded><![CDATA[<p>Very interesting. I have not used the namespace option with memcache, but it sounds like it would do the trick as well.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
