That sounds like a BackgroundRb bug.<br><br>FWIW -- I&#39;ve got a production backgroundrb app running smoothly,<br>but I use the RAILS_ENV setting in the backgroundrb.yml to<br>set it to a production environment. I do not use the -r setting.
<br><br>Mason<br><br><div><span class="gmail_quote">On 1/22/07, <b class="gmail_sendername">Mike Aizatsky</b> &lt;<a href="mailto:mike.aizatsky@gmail.com">mike.aizatsky@gmail.com</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Mason,<br><br>I&#39;ve just had an idea and it turned out to be true in my situation. It<br>turned out, that after a while backgroundrb connects to my<br>_development_ database instead of production one. I&#39;m invoking<br>
backgroundrb with the following command:<br><br>script/backgroundrb start -- -r production<br><br>It looks like -r doesn&#39;t propagate nicely.<br><br>On 1/22/07, Mason Hale &lt;<a href="mailto:masonhale@gmail.com">masonhale@gmail.com
</a>&gt; wrote:<br>&gt; Hi Mike --<br>&gt;<br>&gt; Can you please provide a stack trace or error message?<br>&gt;<br>&gt; If you run the same worker over and over, can you recreate the problem?<br>&gt; Or does this happen after no worker is run for some extended period of time?
<br>&gt; (I&#39;m guessing<br>&gt; here that the db connection might be timing out)<br>&gt;<br>&gt; Do you know if the problem is triggered by a certain number of innvocations,<br>&gt; or is it a lack of activity, or neither?
<br>&gt;<br>&gt; Mason<br>&gt;<br>&gt;<br>&gt;&nbsp;&nbsp;On 1/22/07, Mike Aizatsky &lt;<a href="mailto:mike.aizatsky@gmail.com">mike.aizatsky@gmail.com</a>&gt; wrote:<br>&gt; &gt;<br>&gt; &gt; Hi!<br>&gt; &gt;<br>&gt; &gt; My cron-based worker is being indeed invoked by backgroundRB at
<br>&gt; &gt; correct times. But... After several runs it can no longer find DB<br>&gt; &gt; columns! The same query, which was running OK an hour ago starts to<br>&gt; &gt; throw MySQL error about unkown column in where clause. If I restart
<br>&gt; &gt; backgroundrb it works for some time but stops working after several<br>&gt; &gt; invocations.<br>&gt; &gt;<br>&gt; &gt; Has anyone epxerienced the similar beahviour? Are there any ideas of<br>&gt; &gt; what can be wrong? Any hints? Anything I can check?
<br>&gt; &gt;<br>&gt; &gt; --<br>&gt; &gt; Regards,<br>&gt; &gt; Mike<br>&gt; &gt; _______________________________________________<br>&gt; &gt; Backgroundrb-devel mailing list<br>&gt; &gt; <a href="mailto:Backgroundrb-devel@rubyforge.org">
Backgroundrb-devel@rubyforge.org</a><br>&gt; &gt;<br>&gt; <a href="http://rubyforge.org/mailman/listinfo/backgroundrb-devel">http://rubyforge.org/mailman/listinfo/backgroundrb-devel</a><br>&gt; &gt;<br>&gt;<br>&gt;<br><br>
<br>--<br>Regards,<br>Mike<br></blockquote></div><br>