<?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 2</title>
	<atom:link href="http://davedupre.com/2008/03/29/ruby-background-tasks-with-starling-part-2/feed/" rel="self" type="application/rss+xml" />
	<link>http://davedupre.com/2008/03/29/ruby-background-tasks-with-starling-part-2/</link>
	<description>Some random thoughts - Go big or stay home!</description>
	<lastBuildDate>Mon, 23 Jan 2012 18:56:05 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Dave</title>
		<link>http://davedupre.com/2008/03/29/ruby-background-tasks-with-starling-part-2/comment-page-1/#comment-560</link>
		<dc:creator>Dave</dc:creator>
		<pubDate>Mon, 23 Mar 2009 13:27:33 +0000</pubDate>
		<guid isPermaLink="false">http://davedupre.com/2008/03/29/ruby-background-tasks-with-starling-part-2/#comment-560</guid>
		<description>Workers are still single-threaded. The concurrency level is only at the worker level. Essentially, each worker class gets its own thread.</description>
		<content:encoded><![CDATA[<p>Workers are still single-threaded. The concurrency level is only at the worker level. Essentially, each worker class gets its own thread.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Taurus</title>
		<link>http://davedupre.com/2008/03/29/ruby-background-tasks-with-starling-part-2/comment-page-1/#comment-559</link>
		<dc:creator>Taurus</dc:creator>
		<pubDate>Mon, 23 Mar 2009 12:27:48 +0000</pubDate>
		<guid isPermaLink="false">http://davedupre.com/2008/03/29/ruby-background-tasks-with-starling-part-2/#comment-559</guid>
		<description>@Dave:

If I&#039;ve understood your posts correctly, you indicated the latest version of workling now includes a facility to create concurrent threads in the case of long running jobs. Is there something special I need to do to get that working? My workling runs fine but still only serially processes jobs from the same worker. For example, I have a report_queue_worker which routinely spins off long-running jobs. All other jobs seem to still wait until the last one finishes.</description>
		<content:encoded><![CDATA[<p>@Dave:</p>
<p>If I&#8217;ve understood your posts correctly, you indicated the latest version of workling now includes a facility to create concurrent threads in the case of long running jobs. Is there something special I need to do to get that working? My workling runs fine but still only serially processes jobs from the same worker. For example, I have a report_queue_worker which routinely spins off long-running jobs. All other jobs seem to still wait until the last one finishes.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave</title>
		<link>http://davedupre.com/2008/03/29/ruby-background-tasks-with-starling-part-2/comment-page-1/#comment-366</link>
		<dc:creator>Dave</dc:creator>
		<pubDate>Thu, 12 Feb 2009 23:07:18 +0000</pubDate>
		<guid isPermaLink="false">http://davedupre.com/2008/03/29/ruby-background-tasks-with-starling-part-2/#comment-366</guid>
		<description>Very interesting. The behavior I see in that case is for workling to write something in the log and exit immediately.</description>
		<content:encoded><![CDATA[<p>Very interesting. The behavior I see in that case is for workling to write something in the log and exit immediately.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nanda</title>
		<link>http://davedupre.com/2008/03/29/ruby-background-tasks-with-starling-part-2/comment-page-1/#comment-365</link>
		<dc:creator>Nanda</dc:creator>
		<pubDate>Thu, 12 Feb 2009 21:43:52 +0000</pubDate>
		<guid isPermaLink="false">http://davedupre.com/2008/03/29/ruby-background-tasks-with-starling-part-2/#comment-365</guid>
		<description>We just had the latest github version about 2 months ago, since then haven&#039;t updated. To me it seems like, there was no starling, no spawn, bjrunner running, so looking at the plugin code, it invoked notremoterunner section of the code .. still doesn&#039;t explain why it went in a loop. But now we started the starling and it&#039;s working fine.</description>
		<content:encoded><![CDATA[<p>We just had the latest github version about 2 months ago, since then haven&#8217;t updated. To me it seems like, there was no starling, no spawn, bjrunner running, so looking at the plugin code, it invoked notremoterunner section of the code .. still doesn&#8217;t explain why it went in a loop. But now we started the starling and it&#8217;s working fine.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave</title>
		<link>http://davedupre.com/2008/03/29/ruby-background-tasks-with-starling-part-2/comment-page-1/#comment-364</link>
		<dc:creator>Dave</dc:creator>
		<pubDate>Thu, 12 Feb 2009 02:54:20 +0000</pubDate>
		<guid isPermaLink="false">http://davedupre.com/2008/03/29/ruby-background-tasks-with-starling-part-2/#comment-364</guid>
		<description>I know there is code in there to quit on startup if Starling isn&#039;t running. I just tried it locally, and Workling quit immediately when Starling was not running. Are you running the latest version from Github?</description>
		<content:encoded><![CDATA[<p>I know there is code in there to quit on startup if Starling isn&#8217;t running. I just tried it locally, and Workling quit immediately when Starling was not running. Are you running the latest version from Github?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nanda</title>
		<link>http://davedupre.com/2008/03/29/ruby-background-tasks-with-starling-part-2/comment-page-1/#comment-363</link>
		<dc:creator>Nanda</dc:creator>
		<pubDate>Thu, 12 Feb 2009 02:51:34 +0000</pubDate>
		<guid isPermaLink="false">http://davedupre.com/2008/03/29/ruby-background-tasks-with-starling-part-2/#comment-363</guid>
		<description>Ya, we never had starling running at any point, thing is we dont have much control over the server and not sure how it was set up. But I dont think starling was ever started there, no folder where the task files are stored like /var/spool/starling. Anyway, Ram had mentioned in the comments above he had similar issues, but he had starling running on wrong port, in our case we dont have it running at all.....tried to reproduce it locally and appropriately workling complains it can&#039;t find starling in specified port. Anyway, we will try to debug more, thanks.</description>
		<content:encoded><![CDATA[<p>Ya, we never had starling running at any point, thing is we dont have much control over the server and not sure how it was set up. But I dont think starling was ever started there, no folder where the task files are stored like /var/spool/starling. Anyway, Ram had mentioned in the comments above he had similar issues, but he had starling running on wrong port, in our case we dont have it running at all&#8230;..tried to reproduce it locally and appropriately workling complains it can&#8217;t find starling in specified port. Anyway, we will try to debug more, thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave</title>
		<link>http://davedupre.com/2008/03/29/ruby-background-tasks-with-starling-part-2/comment-page-1/#comment-362</link>
		<dc:creator>Dave</dc:creator>
		<pubDate>Thu, 12 Feb 2009 02:35:50 +0000</pubDate>
		<guid isPermaLink="false">http://davedupre.com/2008/03/29/ruby-background-tasks-with-starling-part-2/#comment-362</guid>
		<description>Very interesting. I would have expected that without Starling running, workling throws and error and stops. Was Starling running when you started Workling, or did Starling stop while Workling was running? In the later case, Workling will keep trying to talk to Starling, but it will pause for a while between tries.</description>
		<content:encoded><![CDATA[<p>Very interesting. I would have expected that without Starling running, workling throws and error and stops. Was Starling running when you started Workling, or did Starling stop while Workling was running? In the later case, Workling will keep trying to talk to Starling, but it will pause for a while between tries.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nanda</title>
		<link>http://davedupre.com/2008/03/29/ruby-background-tasks-with-starling-part-2/comment-page-1/#comment-361</link>
		<dc:creator>Nanda</dc:creator>
		<pubDate>Thu, 12 Feb 2009 00:12:32 +0000</pubDate>
		<guid isPermaLink="false">http://davedupre.com/2008/03/29/ruby-background-tasks-with-starling-part-2/#comment-361</guid>
		<description>Dave,
I am running into a really weird situation. Starling process is not running at all, but workling task seems to be running in endless loop..any thoughts? In workling.yml, we specified starling server as localhost. 
Thanks!</description>
		<content:encoded><![CDATA[<p>Dave,<br />
I am running into a really weird situation. Starling process is not running at all, but workling task seems to be running in endless loop..any thoughts? In workling.yml, we specified starling server as localhost.<br />
Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave</title>
		<link>http://davedupre.com/2008/03/29/ruby-background-tasks-with-starling-part-2/comment-page-1/#comment-360</link>
		<dc:creator>Dave</dc:creator>
		<pubDate>Tue, 10 Feb 2009 19:45:48 +0000</pubDate>
		<guid isPermaLink="false">http://davedupre.com/2008/03/29/ruby-background-tasks-with-starling-part-2/#comment-360</guid>
		<description>I always use the command line rather than a YML file because I didn&#039;t see any doc either. However, I looked through the code and it looks like the format would be:

&lt;pre&gt;
starling:
  host:
  port:
  queue_path:
  log_level:
  daemonize:
  timeout:
  pid_file:
  log_file:
  user:
  group:
  syslog_channel:
  timeout:
&lt;/pre&gt;

Then, run with starling --config starling.yml

I haven&#039;t tried this, so YMMV. Check out load_config_file and parse_options in starling-0.9.8/lib/starling/server_runner.rb. It looks like load_config_file simply maps yml names to symbols, but it maps queue_path --&gt; path and log_file --&gt; logger.

Let me know if this works.</description>
		<content:encoded><![CDATA[<p>I always use the command line rather than a YML file because I didn&#8217;t see any doc either. However, I looked through the code and it looks like the format would be:</p>
<pre>
starling:
  host:
  port:
  queue_path:
  log_level:
  daemonize:
  timeout:
  pid_file:
  log_file:
  user:
  group:
  syslog_channel:
  timeout:
</pre>
<p>Then, run with starling &#8211;config starling.yml</p>
<p>I haven&#8217;t tried this, so YMMV. Check out load_config_file and parse_options in starling-0.9.8/lib/starling/server_runner.rb. It looks like load_config_file simply maps yml names to symbols, but it maps queue_path &#8211;> path and log_file &#8211;> logger.</p>
<p>Let me know if this works.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tom</title>
		<link>http://davedupre.com/2008/03/29/ruby-background-tasks-with-starling-part-2/comment-page-1/#comment-358</link>
		<dc:creator>Tom</dc:creator>
		<pubDate>Tue, 10 Feb 2009 18:37:42 +0000</pubDate>
		<guid isPermaLink="false">http://davedupre.com/2008/03/29/ruby-background-tasks-with-starling-part-2/#comment-358</guid>
		<description>I can&#039;t find any documentation on the starling.yml file?  I only have a workling.yml.  What options are available?  How do I start starling and reference the .yml?

Thanks!</description>
		<content:encoded><![CDATA[<p>I can&#8217;t find any documentation on the starling.yml file?  I only have a workling.yml.  What options are available?  How do I start starling and reference the .yml?</p>
<p>Thanks!</p>
]]></content:encoded>
	</item>
</channel>
</rss>

